Update MpdServer's docstrings
This commit is contained in:
parent
939a8f40d6
commit
68a671414c
@ -56,14 +56,14 @@ class MpdServer(asyncore.dispatcher):
|
|||||||
sys.exit(1)
|
sys.exit(1)
|
||||||
|
|
||||||
def handle_accept(self):
|
def handle_accept(self):
|
||||||
"""Handle new client connection."""
|
"""Called by asyncore when a new client connects."""
|
||||||
(client_socket, client_socket_address) = self.accept()
|
(client_socket, client_socket_address) = self.accept()
|
||||||
logger.info(u'MPD client connection from [%s]:%s',
|
logger.info(u'MPD client connection from [%s]:%s',
|
||||||
client_socket_address[0], client_socket_address[1])
|
client_socket_address[0], client_socket_address[1])
|
||||||
MpdSession(self, client_socket, client_socket_address)
|
MpdSession(self, client_socket, client_socket_address)
|
||||||
|
|
||||||
def handle_close(self):
|
def handle_close(self):
|
||||||
"""Handle end of client connection."""
|
"""Called by asyncore when the socket is closed."""
|
||||||
self.close()
|
self.close()
|
||||||
|
|
||||||
def _format_hostname(self, hostname):
|
def _format_hostname(self, hostname):
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user