Browse Source

handle master session creation

pull/1656/head
orignal 4 years ago
parent
commit
b43a9cc80d
  1. 1
      libi2pd_client/SAM.cpp
  2. 6
      libi2pd_client/SAM.h

1
libi2pd_client/SAM.cpp

@ -352,6 +352,7 @@ namespace client @@ -352,6 +352,7 @@ namespace client
if (style == SAM_VALUE_STREAM) type = eSAMSessionTypeStream;
else if (style == SAM_VALUE_DATAGRAM) type = eSAMSessionTypeDatagram;
else if (style == SAM_VALUE_RAW) type = eSAMSessionTypeRaw;
else if (style == SAM_VALUE_MASTER) type = eSAMSessionTypeMaster;
if (type == eSAMSessionTypeUnknown)
{
// unknown style

6
libi2pd_client/SAM.h

@ -76,6 +76,7 @@ namespace client @@ -76,6 +76,7 @@ namespace client
const char SAM_VALUE_STREAM[] = "STREAM";
const char SAM_VALUE_DATAGRAM[] = "DATAGRAM";
const char SAM_VALUE_RAW[] = "RAW";
const char SAM_VALUE_MASTER[] = "MASTER";
const char SAM_VALUE_TRUE[] = "true";
const char SAM_VALUE_FALSE[] = "false";
@ -171,7 +172,8 @@ namespace client @@ -171,7 +172,8 @@ namespace client
eSAMSessionTypeUnknown,
eSAMSessionTypeStream,
eSAMSessionTypeDatagram,
eSAMSessionTypeRaw
eSAMSessionTypeRaw,
eSAMSessionTypeMaster
};
struct SAMSession
@ -187,7 +189,7 @@ namespace client @@ -187,7 +189,7 @@ namespace client
void CloseStreams ();
};
class SAMBridge: private i2p::util::RunnableService
{
public:

Loading…
Cancel
Save