File: dummyclient.py

package info (click to toggle)
librelp 1.12.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 2,516 kB
  • sloc: ansic: 8,223; sh: 5,083; makefile: 146; python: 25
file content (10 lines) | stat: -rwxr-xr-x 269 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
#!/usr/bin/env python

import socket
import os

port = int(os.environ['TESTPORT'])
print("dummyclient info: opening and closing port " + str(port) + " without sending data")
s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
s.connect(("127.0.0.1", port))
s.close()