John-Mark Gurney
c6f81e4f5f
make ctrl-c work properly..
3 years ago
John-Mark Gurney
fd2c5f9fba
add some documentation, wrap a few long lines..
3 years ago
John-Mark Gurney
7f7f187bcc
add support for server and client to do forwarding to TCP streams...
This will be documented in a followup commit...
3 years ago
John-Mark Gurney
11b4275484
pretty big change here... add id's to the commands to keep track of
them, and makes it easy to await on them.
move more common logic to WSFWDCommon, and convert the Client to using
this logic, makes the code cleaner...
create an add_tasks which will be made sure to be completed before shutting
down the messaging threads (to get responses and the like).. Need some sort
of cleaning method so this doesn't grow unbounded.
Add a asyncTearDown to make sure that all the messages have been processed..
4 years ago
John-Mark Gurney
b5885a443d
make sure that _proc exists before sending exec command..
In the rare case that the process exits before we set _proc,
we'll fail, and then the process will never catch the return
code...
4 years ago
John-Mark Gurney
ccdfd7a22d
restructure wait_closed to make sure it sends the chan closed...
4 years ago
John-Mark Gurney
45731959b6
add function to clear the handler..
4 years ago
John-Mark Gurney
53c3c2a391
add code to call a shutdown function to allow implementations to clean up
4 years ago
John-Mark Gurney
23679ff1cd
more doc strings.. use an __all__ to limit what pydoc displays by default..
4 years ago
John-Mark Gurney
f85627becd
fix wait_closed to wait.. use asyncio.Event instead of rolling my own...
4 years ago
John-Mark Gurney
77f71985d4
add a bunch of doc strings.. still more to come, but discovered a
test coverage bug..
4 years ago
John-Mark Gurney
75ceac2b83
implement the server side of things...
4 years ago
John-Mark Gurney
34c3f65401
move the protocol spec to the README, and flesh it out more...
This is updated to how the current code works..
4 years ago
John-Mark Gurney
10dae01824
this is the fake server, not a real server..
4 years ago
John-Mark Gurney
41b5086d1f
implement the client mostly... oob is not being used currently, and
this is partly due to the fact that right now only one exec can be
run...
4 years ago
John-Mark Gurney
3b41828482
add first cut of wsfwd, only implements auth.. rest to follow..
4 years ago