1
0
mirror of https://github.com/PurpleI2P/i2pd.git synced 2025-01-22 04:04:16 +00:00
This commit is contained in:
Jeff Becker 2018-04-25 11:27:56 -04:00
parent b046c45a9e
commit 0ced38cdcb
No known key found for this signature in database
GPG Key ID: F357B3B42F6F9B05
2 changed files with 3 additions and 3 deletions

View File

@ -165,9 +165,9 @@ namespace stream
void AsyncReceive (const Buffer& buffer, ReceiveHandler handler, int timeout = 0);
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 Cancel () { m_ReceiveTimer.cancel (); };

View File

@ -77,7 +77,7 @@ namespace client
class SAMBridge;
struct SAMSession;
class SAMSocket :public std::enable_shared_from_this<SAMSocket>
class SAMSocket: public std::enable_shared_from_this<SAMSocket>
{
public: