'An event that waits for a connection on the listening socket.
When a connection is made, the event returns a Connection
object.'

def accept(self):

    if self._closed:
        raise SocketClosedError()
    return AcceptEvent(self)
