Skip to content
Snippets Groups Projects
Commit d6d0638a authored by jkerdreu's avatar jkerdreu
Browse files

discovery

git-svn-id: https://redmine.imt-atlantique.fr/svn/xaal/code/Python/branches/0.7@2414 b32b6428-25c9-4566-ad07-03861ab6144f
parent 7e886806
No related branches found
No related tags found
No related merge requests found
import socket
soc = socket.socket(socket.AF_INET,socket.SOCK_DGRAM,socket.IPPROTO_UDP)
soc.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR, 1)
soc.bind(('',6667))
while 1:
data = soc.recv(65507)
print(data)
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment