mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-06-13 17:46:53 +02:00
send all outgoing messages in one buffer
This commit is contained in:
parent
11231abe8a
commit
5ad25376bb
2 changed files with 21 additions and 20 deletions
|
@ -91,10 +91,9 @@ namespace transport
|
|||
void HandleReceived (const boost::system::error_code& ecode, std::size_t bytes_transferred);
|
||||
bool DecryptNextBlock (const uint8_t * encrypted);
|
||||
|
||||
void Send (std::shared_ptr<i2p::I2NPMessage> msg);
|
||||
boost::asio::const_buffers_1 CreateMsgBuffer (std::shared_ptr<I2NPMessage> msg);
|
||||
size_t CreateMsgBuffer (std::shared_ptr<I2NPMessage> msg, uint8_t * buf);
|
||||
void Send (const std::vector<std::shared_ptr<I2NPMessage> >& msgs);
|
||||
void HandleSent (const boost::system::error_code& ecode, std::size_t bytes_transferred, std::vector<std::shared_ptr<I2NPMessage> > msgs);
|
||||
void HandleSent (const boost::system::error_code& ecode, std::size_t bytes_transferred, uint8_t * buf);
|
||||
|
||||
private:
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue