Documentation
¶
Index ¶
- Constants
- type Client
- func (c *Client) Dial(network, address string) (net.Conn, error)
- func (c *Client) DialTCP(network string, laddr, raddr *net.TCPAddr) (*net.TCPConn, error)
- func (c *Client) DialUDP(network string, laddr, raddr *net.UDPAddr) (*UDPConnection, error)
- func (c *Client) Listen(network, address string) (net.Listener, error)
- func (c *Client) ListenTCP(network string, laddr *net.TCPAddr) (*net.TCPListener, error)
- func (c Client) ListenUDP(network string, laddr *net.UDPAddr) (net.PacketConn, error)
- type Connection
- type TCPConnection
- type UDPConnection
- func (u *UDPConnection) Close() error
- func (u *UDPConnection) LocalAddr() net.Addr
- func (u *UDPConnection) Read(b []byte) (int, error)
- func (u *UDPConnection) ReadFrom(b []byte) (int, net.Addr, error)
- func (u *UDPConnection) RemoteAddr() net.Addr
- func (u *UDPConnection) SetDeadline(t time.Time) error
- func (u *UDPConnection) SetReadDeadline(t time.Time) error
- func (u *UDPConnection) SetWriteDeadline(t time.Time) error
- func (u *UDPConnection) Write(b []byte) (int, error)
- func (u *UDPConnection) WriteTo(b []byte, addr net.Addr) (int, error)
Constants ¶
View Source
const MaxProtoSize = 262
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Connection ¶
type Connection struct {
// contains filtered or unexported fields
}
type TCPConnection ¶
type TCPConnection struct {
// contains filtered or unexported fields
}
type UDPConnection ¶
type UDPConnection struct {
// contains filtered or unexported fields
}
func (*UDPConnection) Close ¶
func (u *UDPConnection) Close() error
func (*UDPConnection) LocalAddr ¶
func (u *UDPConnection) LocalAddr() net.Addr
func (*UDPConnection) RemoteAddr ¶
func (u *UDPConnection) RemoteAddr() net.Addr
func (*UDPConnection) SetDeadline ¶
func (u *UDPConnection) SetDeadline(t time.Time) error
func (*UDPConnection) SetReadDeadline ¶
func (u *UDPConnection) SetReadDeadline(t time.Time) error
func (*UDPConnection) SetWriteDeadline ¶
func (u *UDPConnection) SetWriteDeadline(t time.Time) error
Click to show internal directories.
Click to hide internal directories.