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