separate thread for streaming

This commit is contained in:
orignal 2014-03-23 16:00:05 -04:00
parent 219f992d9e
commit 4bd42625fd
3 changed files with 101 additions and 23 deletions

View file

@ -392,7 +392,7 @@ namespace garlic
// later on we should let destination decide
I2NPHeader * header = (I2NPHeader *)buf;
if (header->typeID == eI2NPData)
i2p::stream::HandleDataMessage (&destination, buf + sizeof (I2NPHeader), be16toh (header->size));
i2p::stream::HandleDataMessage (destination, buf + sizeof (I2NPHeader), be16toh (header->size));
else
LogPrint ("Unexpected I2NP garlic message ", (int)header->typeID);
break;