Documentation
¶
Index ¶
- func CheckDirectory(dir string) (bool, error)
- func ConnCopy(src, dst net.Conn, reverseChan chan int64) (err error)
- func CreateDirectory(dir string) (bool, error)
- func GenerateGUID() string
- func GetMD5Hash(text string) string
- func IP2Int(ip string) int
- func InterfaceIsNil(val interface{}) bool
- func InterfaceValid(val interface{}) bool
- func ReadFileAll(filename string) (data []byte, err error)
- func TCPRead(conn net.Conn, size int) (data []byte, err error)
- func TCPReadTimeDuration(conn net.Conn, size int, duration time.Duration) (data []byte, err error)
- func TCPReadTimeout(conn net.Conn, size int, millSec int) (data []byte, err error)
- func TCPWrite(conn net.Conn, data []byte) (writed int, err error)
- func TCPWriteTimeDuration(conn net.Conn, data []byte, duration time.Duration) (writed int, err error)
- func TCPWriteTimeOut(conn net.Conn, data []byte, millSec int) (writed int, err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConnCopy ¶
ConnCopy transfer data from one socket to another one This does the actual data transfer. The broker only closes the Read side.
func ReadFileAll ¶
ReadFileAll from json file
func TCPReadTimeDuration ¶
TCPReadTimeDuration timeout
func TCPReadTimeout ¶
TCPReadTimeout control
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.