source: trigger/TestClient.py@ 673

Last change on this file since 673 was 52, checked in by rissim, 15 years ago
trigger software (VME) v1
  • Property svn:executable set to *
File size: 314 bytes
Line 
1#!/usr/bin/python
2import socket
3host = "localhost"
4port = 9992
5buf = 1024
6addr = (host,port)
7
8#create an INET, STREAMing socket
9s = socket.socket(
10 socket.AF_INET, socket.SOCK_STREAM)
11 #now connect to the web server on port 80
12 # - the normal http port
13s.connect(('localhost', 9992))
14s.sendto(data,addr)
Note: See TracBrowser for help on using the repository browser.