mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-01-22 13:27:17 +01:00
33 lines
496 B
C
33 lines
496 B
C
|
#ifndef DATAGRAM_H__
|
||
|
#define DATAGRAM_H__
|
||
|
|
||
|
#include <inttypes.h>
|
||
|
|
||
|
namespace i2p
|
||
|
{
|
||
|
namespace client
|
||
|
{
|
||
|
class ClientDestination;
|
||
|
}
|
||
|
namespace datagram
|
||
|
{
|
||
|
const size_t MAX_DATAGRAM_SIZE = 32768;
|
||
|
class DatagramDestination
|
||
|
{
|
||
|
public:
|
||
|
|
||
|
DatagramDestination (i2p::client::ClientDestination& owner): m_Owner (owner) {};
|
||
|
~DatagramDestination () {};
|
||
|
|
||
|
void HandleDataMessagePayload (const uint8_t * buf, size_t len);
|
||
|
|
||
|
private:
|
||
|
|
||
|
i2p::client::ClientDestination& m_Owner;
|
||
|
};
|
||
|
}
|
||
|
}
|
||
|
|
||
|
#endif
|
||
|
|