Documentation ¶
Index ¶
- func AggregateListen(lns ...net.Listener) net.Listener
- func Control(network, address string, c syscall.RawConn) (err error)
- func Dial(network, address string) (net.Conn, error)
- func DialContext(ctx context.Context, network, address string) (net.Conn, error)
- func DialTCP(network string, laddr, raddr *net.TCPAddr) (*net.TCPConn, error)
- func DialTCPContext(ctx context.Context, network string, laddr, raddr *net.TCPAddr) (*net.TCPConn, error)
- func DialTCPTimeout(network string, laddr, raddr *net.TCPAddr, tmo time.Duration) (*net.TCPConn, error)
- func DialTimeout(network, address string, tmo time.Duration) (net.Conn, error)
- func DialUDP(network string, laddr, raddr *net.UDPAddr) (*net.UDPConn, error)
- func DialUDPContext(ctx context.Context, network string, laddr, raddr *net.UDPAddr) (*net.UDPConn, error)
- func DialUDPTimeout(network string, laddr, raddr *net.UDPAddr, tmo time.Duration) (*net.UDPConn, error)
- func Listen(network, address string) (net.Listener, error)
- func ListenContext(ctx context.Context, network, address string) (net.Listener, error)
- func ListenPacket(network, address string) (net.PacketConn, error)
- func ListenPacketContext(ctx context.Context, network, address string) (net.PacketConn, error)
- func ListenUDP(network string, laddr *net.UDPAddr) (*net.UDPConn, error)
- type ListenConfig
- func (c *ListenConfig) Listen(network, address string) (net.Listener, error)
- func (c *ListenConfig) ListenPacket(network, address string) (net.PacketConn, error)
- func (c *ListenConfig) ListenTCP(network string, laddr *net.TCPAddr) (*TCPListener, error)
- func (c *ListenConfig) ListenUDP(network string, laddr *net.UDPAddr) (*net.UDPConn, error)
- type MultiListener
- type SafeChan
- type TCPListener
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DialTCPContext ¶
func DialTCPTimeout ¶
func DialUDPContext ¶
func DialUDPTimeout ¶
func ListenContext ¶
func ListenPacket ¶
func ListenPacket(network, address string) (net.PacketConn, error)
func ListenPacketContext ¶
Types ¶
type ListenConfig ¶
type ListenConfig struct { net.ListenConfig // contains filtered or unexported fields }
func NewListenConfig ¶
func NewListenConfig(ctx context.Context) *ListenConfig
func (*ListenConfig) Listen ¶
func (c *ListenConfig) Listen(network, address string) (net.Listener, error)
func (*ListenConfig) ListenPacket ¶
func (c *ListenConfig) ListenPacket(network, address string) (net.PacketConn, error)
func (*ListenConfig) ListenTCP ¶
func (c *ListenConfig) ListenTCP(network string, laddr *net.TCPAddr) (*TCPListener, error)
type MultiListener ¶
type MultiListener struct {
// contains filtered or unexported fields
}
func MultiListen ¶
func MultiListen(network string, address ...string) (*MultiListener, error)
func (*MultiListener) Addr ¶
func (ml *MultiListener) Addr() net.Addr
func (*MultiListener) Close ¶
func (ml *MultiListener) Close() error
type SafeChan ¶
func NewSafeChan ¶
type TCPListener ¶
type TCPListener struct {
*net.TCPListener
}
Click to show internal directories.
Click to hide internal directories.