send recived data after address from BOB inbound connection

This commit is contained in:
orignal 2014-12-03 20:37:20 -05:00
parent 9328bd1caf
commit 76478ceaa2
4 changed files with 13 additions and 6 deletions

View file

@ -27,9 +27,12 @@ namespace client
delete m_Socket;
}
void I2PTunnelConnection::I2PConnect ()
void I2PTunnelConnection::I2PConnect (const uint8_t * msg, size_t len)
{
m_Stream->Send (m_Buffer, 0); // connect
if (msg)
m_Stream->Send (msg, len); // connect and send
else
m_Stream->Send (m_Buffer, 0); // connect
StreamReceive ();
Receive ();
}