mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-04-28 11:47:48 +02:00
request b32-coded I2P address from HTTP server
This commit is contained in:
parent
07eb5baac0
commit
9b92641112
4 changed files with 67 additions and 5 deletions
|
@ -54,7 +54,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); // returns 0 if timeout expired
|
||||
size_t Receive (uint8_t * buf, size_t len, int timeout = 0); // returns 0 if timeout expired
|
||||
void Close ();
|
||||
|
||||
private:
|
||||
|
@ -105,7 +105,7 @@ namespace stream
|
|||
};
|
||||
|
||||
Stream * CreateStream (const i2p::data::LeaseSet * remote);
|
||||
void CloseStream (Stream * stream);
|
||||
void DeleteStream (Stream * stream);
|
||||
|
||||
// assuming data is I2CP message
|
||||
void HandleDataMessage (i2p::data::IdentHash * destination, const uint8_t * buf, size_t len);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue