'Create, bind and listen on the listening socket.'

def _setup(self):

    sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
    sock.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR, 1)
    sock.bind((self.address, self.port))
    sock.listen(100)
    return sock
