Change port to 6667, bind to all IPs

This commit is contained in:
Neale Pickett 2009-08-20 12:57:06 -06:00
parent 530a209082
commit 3fc8fcbd3f
2 changed files with 2 additions and 3 deletions

View File

@ -20,7 +20,7 @@ def main():
req = points.encode_request(now, cat, team, score)
s = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)
while True:
s.sendto(req, (opts.host, 9999))
s.sendto(req, (opts.host, 6667))
r, w, x = select.select([s], [], [], 0.2)
if r:
b = s.recv(500)

View File

@ -39,6 +39,5 @@ class MyHandler(socketserver.BaseRequestHandler):
if __name__ == "__main__":
HOST, PORT = "localhost", 9999
server = socketserver.UDPServer((HOST, PORT), MyHandler)
server = socketserver.UDPServer(('', 6667), MyHandler)
server.serve_forever()