shadowsocks v0.4.0 Shadowsocks.Stream View Source
process stream transport and decode / encode
Link to this section Summary
Functions
wirte data to stream by async note: this method is copy data to socket driver
receive and decode data note the size only can be 0 when OTA stream
wirte data to stream, bolcked
Link to this section Functions
wirte data to stream by async note: this method is copy data to socket driver.
The sender process will received message: {:inet_reply, socket, status}
when send has completed.
The recv
method receive and ignore {:inet_reply, socket, status}
message. So, you should not care this message after you called recv
, otherwise you must receive this message.
receive and decode data note the size only can be 0 when OTA stream
wirte data to stream, bolcked