document test-clients
This commit is contained in:
parent
82c175a02e
commit
3cda647883
|
@ -1,4 +1,9 @@
|
||||||
from __future__ import print_function
|
"""
|
||||||
|
This is a test-client for the transit-relay that uses TCP. It
|
||||||
|
doesn't send any data, only prints out data that is received. Uses a
|
||||||
|
fixed token of 64 'a' characters. Always connects on localhost:4001
|
||||||
|
"""
|
||||||
|
|
||||||
|
|
||||||
from twisted.internet import endpoints
|
from twisted.internet import endpoints
|
||||||
from twisted.internet.defer import (
|
from twisted.internet.defer import (
|
||||||
|
|
10
ws_client.py
10
ws_client.py
|
@ -1,4 +1,12 @@
|
||||||
from __future__ import print_function
|
"""
|
||||||
|
This is a test-client for the transit-relay that uses WebSockets.
|
||||||
|
|
||||||
|
If an additional command-line argument (anything) is added, it will
|
||||||
|
send 5 messages upon connection. Otherwise, it just prints out what is
|
||||||
|
received. Uses a fixed token of 64 'a' characters. Always connects on
|
||||||
|
localhost:4002
|
||||||
|
"""
|
||||||
|
|
||||||
import sys
|
import sys
|
||||||
|
|
||||||
from twisted.internet import endpoints
|
from twisted.internet import endpoints
|
||||||
|
|
Loading…
Reference in New Issue
Block a user