def listen(self, addr, backlog=1024): """ Begin listening for connections made to the channel. Returns the channel. ========== ============ Arguments Description ========== ============ addr The address to listen on. backlog *Optional.* The size of the connection queue. By default, is 1024. ========== ============ """ return StreamServer.listen(self, addr, backlog)
def listen(self, port=8080, host='', backlog=1024): """ Begin listening for connections made to the channel. Returns the channel. ========== ============ Arguments Description ========== ============ port *Optional.* The port to listen for connection on. By default, is 8080. host *Optional.* The local host to bind to. By default, is ''. backlog *Optional.* The size of the connection queue. By default, is 1024. ========== ============ """ return StreamServer.listen(self, (host, port), backlog)