Initial revision

This commit is contained in:
andreas
2005-02-27 16:39:35 +00:00
commit 777b50e4e9
3 changed files with 446 additions and 0 deletions
Executable
+15
View File
@@ -0,0 +1,15 @@
#!/usr/bin/env python
import time, socket
ADDR="204.29.161.33"
#ADDR="10.99.1.4"
PORT=50003
SERVICE="service"
iam=socket.gethostname()
sock=socket.socket(socket.AF_INET, socket.SOCK_DGRAM)
msgboot="msg=This is a test;service=%s;name=%s" % (SERVICE, iam)
sock.sendto(msgboot, (ADDR, PORT))
time.sleep(1)
sock.close()