mirror of
https://github.com/PurpleI2P/i2pd
synced 2024-11-10 08:00:38 +03:00
handle master session creation
This commit is contained in:
parent
b5618af308
commit
b43a9cc80d
@ -352,6 +352,7 @@ namespace client
|
|||||||
if (style == SAM_VALUE_STREAM) type = eSAMSessionTypeStream;
|
if (style == SAM_VALUE_STREAM) type = eSAMSessionTypeStream;
|
||||||
else if (style == SAM_VALUE_DATAGRAM) type = eSAMSessionTypeDatagram;
|
else if (style == SAM_VALUE_DATAGRAM) type = eSAMSessionTypeDatagram;
|
||||||
else if (style == SAM_VALUE_RAW) type = eSAMSessionTypeRaw;
|
else if (style == SAM_VALUE_RAW) type = eSAMSessionTypeRaw;
|
||||||
|
else if (style == SAM_VALUE_MASTER) type = eSAMSessionTypeMaster;
|
||||||
if (type == eSAMSessionTypeUnknown)
|
if (type == eSAMSessionTypeUnknown)
|
||||||
{
|
{
|
||||||
// unknown style
|
// unknown style
|
||||||
|
@ -76,6 +76,7 @@ namespace client
|
|||||||
const char SAM_VALUE_STREAM[] = "STREAM";
|
const char SAM_VALUE_STREAM[] = "STREAM";
|
||||||
const char SAM_VALUE_DATAGRAM[] = "DATAGRAM";
|
const char SAM_VALUE_DATAGRAM[] = "DATAGRAM";
|
||||||
const char SAM_VALUE_RAW[] = "RAW";
|
const char SAM_VALUE_RAW[] = "RAW";
|
||||||
|
const char SAM_VALUE_MASTER[] = "MASTER";
|
||||||
const char SAM_VALUE_TRUE[] = "true";
|
const char SAM_VALUE_TRUE[] = "true";
|
||||||
const char SAM_VALUE_FALSE[] = "false";
|
const char SAM_VALUE_FALSE[] = "false";
|
||||||
|
|
||||||
@ -171,7 +172,8 @@ namespace client
|
|||||||
eSAMSessionTypeUnknown,
|
eSAMSessionTypeUnknown,
|
||||||
eSAMSessionTypeStream,
|
eSAMSessionTypeStream,
|
||||||
eSAMSessionTypeDatagram,
|
eSAMSessionTypeDatagram,
|
||||||
eSAMSessionTypeRaw
|
eSAMSessionTypeRaw,
|
||||||
|
eSAMSessionTypeMaster
|
||||||
};
|
};
|
||||||
|
|
||||||
struct SAMSession
|
struct SAMSession
|
||||||
|
Loading…
Reference in New Issue
Block a user