mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-02-02 02:44:15 +00:00
tabify
This commit is contained in:
parent
b046c45a9e
commit
0ced38cdcb
@ -165,9 +165,9 @@ namespace stream
|
|||||||
void AsyncReceive (const Buffer& buffer, ReceiveHandler handler, int timeout = 0);
|
void AsyncReceive (const Buffer& buffer, ReceiveHandler handler, int timeout = 0);
|
||||||
size_t ReadSome (uint8_t * buf, size_t len) { return ConcatenatePackets (buf, len); };
|
size_t ReadSome (uint8_t * buf, size_t len) { return ConcatenatePackets (buf, len); };
|
||||||
|
|
||||||
void AsyncClose() { m_Service.post(std::bind(&Stream::Close, shared_from_this())); };
|
void AsyncClose() { m_Service.post(std::bind(&Stream::Close, shared_from_this())); };
|
||||||
|
|
||||||
/** only call close from destination thread, use Stream::AsyncClose for other threads */
|
/** only call close from destination thread, use Stream::AsyncClose for other threads */
|
||||||
void Close ();
|
void Close ();
|
||||||
void Cancel () { m_ReceiveTimer.cancel (); };
|
void Cancel () { m_ReceiveTimer.cancel (); };
|
||||||
|
|
||||||
|
@ -77,7 +77,7 @@ namespace client
|
|||||||
|
|
||||||
class SAMBridge;
|
class SAMBridge;
|
||||||
struct SAMSession;
|
struct SAMSession;
|
||||||
class SAMSocket :public std::enable_shared_from_this<SAMSocket>
|
class SAMSocket: public std::enable_shared_from_this<SAMSocket>
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user