|
Last change
on this file since 509 was 421, checked in by garonne, 18 years ago |
|
|
-
Property svn:executable
set to
*
|
|
File size:
291 bytes
|
| Rev | Line | |
|---|
| [421] | 1 | #!/usr/bin/env python
|
|---|
| 2 | import socket
|
|---|
| 3 | import sys
|
|---|
| 4 |
|
|---|
| 5 | HOST = 'localhost' # The remote host
|
|---|
| 6 | PORT = 1968 # The same port as used by the server
|
|---|
| 7 | s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
|
|---|
| 8 | s.connect((HOST, PORT))
|
|---|
| 9 | s.send(sys.argv[1])
|
|---|
| 10 | data = s.recv(1024)
|
|---|
| 11 | s.close()
|
|---|
| 12 | print data
|
|---|
| 13 |
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.