Documentation ¶ Index ¶ type Address func (a Address) Network() string func (a Address) String() string type Conn func Dial(local, remote *Address) (*Conn, error) func Listen(local *Address) (*Conn, error) func (conn *Conn) Close() func (conn *Conn) Read(buf []byte) (int, error) func (conn *Conn) ReadFrom(buf []byte) (int, *Address, error) func (conn *Conn) Write(data []byte) error func (conn *Conn) WriteTo(data []byte, peer *Address) error Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ This section is empty. Types ¶ type Address ¶ type Address struct { Addr net.ProtocolAddress Port uint16 } func (Address) Network ¶ func (a Address) Network() string func (Address) String ¶ func (a Address) String() string type Conn ¶ type Conn struct { // contains filtered or unexported fields } func Dial ¶ func Dial(local, remote *Address) (*Conn, error) func Listen ¶ func Listen(local *Address) (*Conn, error) func (*Conn) Close ¶ func (conn *Conn) Close() func (*Conn) Read ¶ func (conn *Conn) Read(buf []byte) (int, error) func (*Conn) ReadFrom ¶ func (conn *Conn) ReadFrom(buf []byte) (int, *Address, error) func (*Conn) Write ¶ func (conn *Conn) Write(data []byte) error func (*Conn) WriteTo ¶ func (conn *Conn) WriteTo(data []byte, peer *Address) error Source Files ¶ View all Source files addr.go cb.go conn.go parse.go socket.go udp.go Click to show internal directories. Click to hide internal directories.