document test-clients

This commit is contained in:
meejah 2021-04-15 12:09:44 -06:00
parent 82c175a02e
commit 3cda647883
2 changed files with 15 additions and 2 deletions

View File

@ -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 (

View File

@ -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