def add(self, sock, callback):
    '\n        Add new socket.\n\n        :param UDPSocket sock: UDPSocket to add.\n        '
    if (not sock.is_active()):
        return
    self._sel.register(sock.sock, selectors.EVENT_READ, (sock, callback))
Add new socket.

:param UDPSocket sock: UDPSocket to add.
def add(self, sock, callback):
    '\n        Add new socket.\n\n        :param UDPSocket sock: UDPSocket to add.\n        '
    if (not sock.is_active()):
        return
    self._sel.register(sock.sock, selectors.EVENT_READ, (sock, callback))