def open_socket(self):
self.socket = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)<EOL>self.socket.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR, <NUM_LIT:1>)<EOL>self.socket.setblocking(<NUM_LIT:0>)<EOL>self.socket.bind((self.host, self.port))<EOL>
Opens the socket and binds to the given host and port. Uses
SO_REUSEADDR to be as robust as possible.