Documentation
      ¶
    
    
  
    
  
    Index ¶
- Variables
 - func DialContext(ctx context.Context, network, address string) (net.Conn, error)
 - func IsAcceptTimeoutError(err error) bool
 - func IsClosedConnError(err error) bool
 - func Listen(ctx context.Context, network, address string) (net.Listener, error)
 - func ListenPacket(ctx context.Context, network, address string) (net.PacketConn, error)
 - func NewSingleConnListener(conn net.Conn) net.Listener
 - func VirtualDialContext(ctx context.Context, network, address string) (net.Conn, error)
 - func VirtualListen(ctx context.Context, network, address string) (net.Listener, error)
 
Constants ¶
This section is empty.
Variables ¶
      View Source
      
  
    var ErrAcceptTimeout = errors.New("i/o timeout")
    
      View Source
      
  
var ErrNetClosing = errors.New("use of closed network connection")
    Functions ¶
func DialContext ¶ added in v0.4.7
func IsAcceptTimeoutError ¶
IsAcceptTimeoutError reports whether err is an error from use of a accept timeout.
func IsClosedConnError ¶
IsClosedConnError reports whether err is an error from use of a closed network connection.
func ListenPacket ¶
func VirtualDialContext ¶ added in v0.4.7
Types ¶
This section is empty.
 Click to show internal directories. 
   Click to hide internal directories.