def _createSocket(self, port):
self._logger.info(<EOL>'<STR_LIT>'.format(port))<EOL>sock = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)<EOL>sock.settimeout(self._timeout)<EOL>self._logger.info(<EOL>'<STR_LIT>'<EOL>.format(**self.__dict__))<EOL>sock.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR, <NUM_LIT:1>)<EOL>self._logger.info('<STR_LIT>')<EOL>sock.bind(('<STR_LIT>', port))<EOL>self._logger.info(<EOL>'<STR_LIT>'<EOL>.format(port=port, **self.__dict__))<EOL>return sock<EOL>
Creates a UDP socket bound to any interface (empty string host address)
but to the specified port.