'Create a socket and setup \'accept\' handler'

def create_accept_socket(self):

    listen_sock = socket.socket()
    listen_sock.setblocking(0)
    listen_sock.bind(('localhost', 0))
    listen_sock.listen(1)
    fd_ = self.save_sock(listen_sock)
    self.listen_addr = listen_sock.getsockname()
    self.ioloop.add_handler(fd_, self.do_accept, READ)
