A Listener is a generic network listener for stream-oriented protocols.

Multiple goroutines may invoke methods on a Listener simultaneously.

Hierarchy

  • Listener

Indexable

[key: string]: any

Methods

Methods

  • Accept waits for and returns the next connection to the listener.

    Returns net.Conn

  • Addr returns the listener's network address.

    Returns Addr

  • Close closes the listener. Any blocked Accept operations will be unblocked and return errors.

    Returns void

Generated using TypeDoc