Documentation
¶
Index ¶
- func SetMultiConn(d *espat.Device, multiConn bool) error
- func SetPasvRecv(d *espat.Device, pasvRecv bool) error
- type Conn
- func (c *Conn) Close() error
- func (c *Conn) LocalAddr() net.Addr
- func (c *Conn) Read(p []byte) (n int, err error)
- func (c *Conn) RemoteAddr() net.Addr
- func (c *Conn) SetDeadline(t time.Time) error
- 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 ¶
A Conn is a simple wrapper over the espn.Conn that implements the net.Conn interface for TCP and UDP network connections.
func (*Conn) Read ¶
Read implements the net.Conn Read method. BUG: Read cannot be used concurently in active mode.
func (*Conn) RemoteAddr ¶
RemoteAddr implements the net.Conn RemoteAddr method.
func (*Conn) SetDeadline ¶
SetDeadline implements the net.Conn SetDeadline method.
func (*Conn) SetReadDeadline ¶
SetReadDeadline implements the net.Conn SetReadDeadline method.
func (*Conn) SetWriteDeadline ¶
SetWriteDeadline implements 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.