11 USAGE=
'send host:port seqnum'
20 print(
'len(argv)=%d'%(len(argv),))
21 if len(argv) != 3: print(USAGE); sys.exit()
22 node,port = argv[1].split(
':')
24 buf+=chr(int(argv[2])&0xff)
25 buf+=
"This is the ARTDAQ UDP test string. It contains exactly 109 characters, making for a total size of 111 bytes."
26 s = socket.socket( socket.AF_INET, socket.SOCK_DGRAM )
27 s.sendto( buf, (node,int(port)) )
31 if __name__ ==
"__main__": main(sys.argv)