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) (*TCPConnection, 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) ListenPacket(network string, address string) (net.PacketConn, error)
- func (c *Client) ListenTCP(network string, laddr *net.TCPAddr) (net.Listener, error)
- func (c *Client) ListenUDP(network string, laddr *net.UDPAddr) (net.PacketConn, error)
- type Connection
- type TCPConnection
- func (c *TCPConnection) Close() error
- func (c *TCPConnection) LocalAddr() net.Addr
- func (c *TCPConnection) Read(b []byte) (int, error)
- func (c *TCPConnection) RemoteAddr() net.Addr
- func (c *TCPConnection) SetDeadline(t time.Time) error
- func (c *TCPConnection) SetReadDeadline(t time.Time) error
- func (c *TCPConnection) SetWriteDeadline(t time.Time) error
- func (c *TCPConnection) Write(b []byte) (int, error)
- type TCPListener
- 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 Client ¶
func (*Client) ListenPacket ¶
type Connection ¶
type Connection struct {
// contains filtered or unexported fields
}
type TCPConnection ¶
type TCPConnection struct {
// contains filtered or unexported fields
}
func (*TCPConnection) Close ¶
func (c *TCPConnection) Close() error
func (*TCPConnection) LocalAddr ¶
func (c *TCPConnection) LocalAddr() net.Addr
func (*TCPConnection) RemoteAddr ¶
func (c *TCPConnection) RemoteAddr() net.Addr
func (*TCPConnection) SetDeadline ¶
func (c *TCPConnection) SetDeadline(t time.Time) error
func (*TCPConnection) SetReadDeadline ¶
func (c *TCPConnection) SetReadDeadline(t time.Time) error
func (*TCPConnection) SetWriteDeadline ¶
func (c *TCPConnection) SetWriteDeadline(t time.Time) error
type TCPListener ¶
type TCPListener struct {
// contains filtered or unexported fields
}
func (*TCPListener) Addr ¶
func (c *TCPListener) Addr() net.Addr
func (*TCPListener) Close ¶
func (c *TCPListener) Close() error
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.