mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-04-28 11:47:48 +02:00
removed sync Receive operation
This commit is contained in:
parent
c9c38cccf6
commit
3cf256b769
2 changed files with 1 additions and 15 deletions
|
@ -80,7 +80,7 @@ namespace stream
|
|||
|
||||
void HandleNextPacket (Packet * packet);
|
||||
size_t Send (uint8_t * buf, size_t len, int timeout); // timeout in seconds
|
||||
size_t Receive (uint8_t * buf, size_t len, int timeout = 0); // returns 0 if timeout expired
|
||||
|
||||
template<typename Buffer, typename ReceiveHandler>
|
||||
void AsyncReceive (const Buffer& buffer, ReceiveHandler handler, int timeout = 0);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue