Initial revision
This commit is contained in:
Executable
+15
@@ -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()
|
||||
Reference in New Issue
Block a user