John-Mark Gurney
acb6eac238
clean up the tests better, shame there isn't a context handler for processes...
5 years ago
John-Mark Gurney
e79d8273f4
add protocol version checking, so we fail if the version mismatches...
5 years ago
John-Mark Gurney
8003d4e84c
add sending a protocol version, so we can extend the protocol in the future...
5 years ago
John-Mark Gurney
93a5211373
add docs to parsesockstr, and drop the _ to make it first class. this
allows us to reference it's docs from where it's used...
5 years ago
John-Mark Gurney
1a77fc8067
add tests for _parsesockstr/connectsockstr/listensockstr, add support
for TCP for them...
clean up a bunch of the test sockets, need to document how to clean up
the various services...
Stream line some of the test code so that it is properly all covered.
5 years ago
John-Mark Gurney
27daaa0c36
reduce time out so tests run a bit faster... not sure what the best
way to test for this condition is...
5 years ago
John-Mark Gurney
2f8a62aa16
eliminate a bunch of sleeps, in one place use an Event to syncronize
5 years ago
John-Mark Gurney
ef95a6f276
add test to make sure that the server checks the client's key and
only allows the key that was specified
5 years ago
John-Mark Gurney
d33583e340
change ptpair to a function and pass in the remote static key (if
we're the responder) so that the responder can validate and possibly
change the route based upon it...
5 years ago
John-Mark Gurney
95afbe5737
This should make things work now! both client and server can be run...
5 years ago
John-Mark Gurney
647a2a113a
add option to not use pipes, to make it easier to see the output...
start adding an end to end test
5 years ago
John-Mark Gurney
52460a3912
clean up how we check that the process runs... This is better as it
allows to check output, and prevents spamming to test console. It
also sets up the environment closer to a real run.
5 years ago
John-Mark Gurney
f002ce41d1
add comment about how to improve this...
5 years ago
John-Mark Gurney
9acd8dac9a
add a generate key command..
5 years ago
John-Mark Gurney
05e577f738
move the function locally since it looks like this is the way forward..
5 years ago
John-Mark Gurney
be2e5fd6da
minor reorg work..
make both pairs come from an awaitable object, this will be needed for
future work...
keep lines under 80 chars...
Minor reorg of the main loop to make it clearer...
5 years ago
John-Mark Gurney
beb82c02e5
get the other side working... This was a lot easier to get functional
than I expected...
5 years ago
John-Mark Gurney
7f60466d35
get the responder side of things working, including COMPLETE! shutdown...
not fully tested on the various errors...
5 years ago
John-Mark Gurney
349295cda7
trying to figure out how to shut things down cleanly... making some progress..
and one quarter of things shutdown properly so far..
5 years ago
John-Mark Gurney
fa9a3d20dc
switch to using asyncio. It's so much cleaner than twisted.
5 years ago
John-Mark Gurney
36cd3a25d8
add start of vanila version of tunnel.. this is a check point to see
if async will work out or not..
5 years ago