post work to io service

This commit is contained in:
Jeff Becker 2016-08-22 13:04:36 -04:00
parent bee34a3222
commit f5e2899275
No known key found for this signature in database
GPG key ID: AB950234D6EA286B
3 changed files with 19 additions and 12 deletions

View file

@ -167,7 +167,7 @@ namespace client
~I2PUDPServerTunnel();
/** expire stale udp conversations */
void ExpireStale(const uint64_t delta=I2P_UDP_SESSION_TIMEOUT);
void Start();
private:
void HandleRecvFromI2P(const i2p::data::IdentityEx& from, uint16_t fromPort, uint16_t toPort, const uint8_t * buf, size_t len);
UDPSession & ObtainUDPSession(const i2p::data::IdentityEx& from, uint16_t localPort, uint16_t remotePort);