'Listens on ip/port and fires _do_accept when there\'s a connection'

def __init__(self, ip=IP_ANY, port=None, backlog=5, *args, **kw):

    IOWorker.__init__(self)
    s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
    self.socket = s
    s.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR, 1)
    if (port is None):
        port = 0
    s.bind((str(IPAddr(ip)), port))
    s.listen(backlog)
