Documentation
¶
Index ¶
- func SetMultiConn(d *espat.Device, multiConn bool) error
- func SetPasvRecv(d *espat.Device, pasvRecv bool) error
- type Addr
- type Conn
- func (c *Conn) Close() error
- func (c *Conn) LocalAddr() *Addr
- func (c *Conn) Read(p []byte) (n int, err error)
- func (c *Conn) RemoteAddr() *Addr
- func (c *Conn) SetReadDeadline(t time.Time) error
- func (c *Conn) SetWriteDeadline(t time.Time) error
- func (c *Conn) Write(p []byte) (n int, err error)
- func (c *Conn) WriteString(p string) (n int, err error)
- type Listener
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SetMultiConn ¶
SetMultiConn enables/disables the multiple connection mode.
Types ¶
type Conn ¶
type Conn struct {
// contains filtered or unexported fields
}
A Conn represents a TCP or UDP conection.
func (*Conn) Read ¶
Read implements io.Reader interface. BUG: Read cannot be used concurently in active mode.
func (*Conn) RemoteAddr ¶
RemoteAddr works like the net.Conn RemoteAddr method.
func (*Conn) SetReadDeadline ¶
SetReadDeadline works like the net.Conn SetReadDeadline method.
func (*Conn) SetWriteDeadline ¶
SetWriteDeadline works like the net.Conn SetWriteDeadline method.
Directories
¶
Path | Synopsis |
---|---|
examples
|
|
client
Client is an example of TCP/UDP client.
|
Client is an example of TCP/UDP client. |
simpleclient
Simpleclient is a simple TCP-only client.
|
Simpleclient is a simple TCP-only client. |
simpleserver
Simpleserver is a simple TCP-only server.
|
Simpleserver is a simple TCP-only server. |
Click to show internal directories.
Click to hide internal directories.