https_server.py
def handle_new_conn(sock, fd_to_socket, poller):
    """Handles a new connection to the server.

    Accepts the socket sonnection and registers the socket with the poller
    appropriately.

    Arguments:
        sock (:obj: `socket`) socket object associated with the server socket
        fd_to_socket (:obj: `dict`) Dictionary mapping file descriptors to
            socket objects for new connections.
        poller (:obj: `select.poll`) polling object from the select module for
            concurrent socket IO

    Returns:
        void
    """

    conn, addr = sock.accept()
    conn.setblocking(0)
    fd_to_socket[conn.fileno()] = conn
    poller.register(conn, READ_ONLY)
    _LOGGER.debug("New TCP Connection Created: %s", addr)
Handles a new connection to the server.

    Accepts the socket sonnection and registers the socket with the poller
    appropriately.

    Arguments:
        sock (:obj: `socket`) socket object associated with the server socket
        fd_to_socket (:obj: `dict`) Dictionary mapping file descriptors to
            socket objects for new connections.
        poller (:obj: `select.poll`) polling object from the select module for
            concurrent socket IO

    Returns:
        void
    
Handles a new connection to the server.
Accepts the socket sonnection and registers the socket with the poller
appropriately.
Handles a new connection to the server . Accepts the socket sonnection and registers the socket with the poller appropriately .
def handle_new_conn(sock, fd_to_socket, poller):
    conn, addr = sock.accept()
    conn.setblocking(0)
    fd_to_socket[conn.fileno()] = conn
    poller.register(conn, READ_ONLY)
    _LOGGER.debug("New TCP Connection Created: %s", addr)
def handle_new_conn ( sock , fd_to_socket , poller ) : conn , addr = sock . accept ( ) conn . setblocking ( 0 ) fd_to_socket [ conn . fileno ( ) ] = conn poller . register ( conn , READ_ONLY ) _LOGGER . debug ( "New TCP Connection Created: %s" , addr )
Handles a new connection to the server.
Handles a new connection to the server .
"""Handles a new connection to the server.

    Accepts the socket sonnection and registers the socket with the poller
    appropriately.

    Arguments:
        sock (:obj: `socket`) socket object associated with the server socket
        fd_to_socket (:obj: `dict`) Dictionary mapping file descriptors to
            socket objects for new connections.
        poller (:obj: `select.poll`) polling object from the select module for
            concurrent socket IO

    Returns:
        void
    """
None
sock
fd_to_socket
poller
sock (
None
fd_to_socket (
`dict`) Dictionary mapping file descriptors to
socket objects for new connections.
` dict ` ) Dictionary mapping file descriptors to socket objects for new connections .
poller (
`select.poll`) polling object from the select module for
concurrent socket IO
` select . poll ` ) polling object from the select module for concurrent socket IO