change names of clients

This commit is contained in:
andreas
2005-07-14 19:28:59 +00:00
parent ca0fe3b5a8
commit 31341a7445
2 changed files with 2 additions and 2 deletions
Executable
+15
View File
@@ -0,0 +1,15 @@
#!/usr/bin/env python
# $Id: hbmsg,v 1.1 2005/07/14 19:28:59 andreas Exp $
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()