File tree Expand file tree Collapse file tree 1 file changed +8
-4
lines changed
Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Original file line number Diff line number Diff line change 22"""A simplistic message protocol.
33
44This adds rudimentary message framing and stream re-synchronization on top of a
5- stream-based transport layer, such as TCP. This is a sans-IO implementation.
5+ stream-based transport layer, such as TCP. This is a pure sans-IO implementation.
66
77The decoder uses a receive buffer to decode or receive messages. This is used
88as a staging area for incoming data, since the decoder must hold on to data
3939 https://sans-io.readthedocs.io/
4040"""
4141
42- __all__ = ["encodemsg" ,
43- "ReceiveBuffer" ,
42+ __all__ = [ # To send, you'll need:
43+ "encodemsg" ,
44+ # To receive, you'll need at least one of:
4445 "socketsource" , "streamsource" , "bytessource" ,
45- "decodemsg" ]
46+ # and either:
47+ "MessageDecoder" ,
48+ # or:
49+ "ReceiveBuffer" , "decodemsg" ]
4650
4751import select
4852import socket
You can’t perform that action at this time.
0 commit comments