shadowsocks v0.3.6 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

Link to this function async_send(stream, data) View Source

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.

Link to this function recv(stream, size, timeout) View Source

receive and decode data note the size only can be 0 when OTA stream

wirte data to stream, bolcked