|
|
@ -24,7 +24,8 @@ namespace client |
|
|
|
const int SAM_NAMING_LOOKUP_TIMEOUT = 5; // in seconds
|
|
|
|
const int SAM_NAMING_LOOKUP_TIMEOUT = 5; // in seconds
|
|
|
|
const int SAM_SESSION_READINESS_CHECK_INTERVAL = 20; // in seconds
|
|
|
|
const int SAM_SESSION_READINESS_CHECK_INTERVAL = 20; // in seconds
|
|
|
|
const char SAM_HANDSHAKE[] = "HELLO VERSION"; |
|
|
|
const char SAM_HANDSHAKE[] = "HELLO VERSION"; |
|
|
|
const char SAM_HANDSHAKE_REPLY[] = "HELLO REPLY RESULT=OK VERSION=3.0\n"; |
|
|
|
const char SAM_HANDSHAKE_REPLY[] = "HELLO REPLY RESULT=OK VERSION=%s\n"; |
|
|
|
|
|
|
|
const char SAM_HANDSHAKE_I2P_ERROR[] = "HELLO REPLY RESULT=I2P_ERROR\n"; |
|
|
|
const char SAM_SESSION_CREATE[] = "SESSION CREATE"; |
|
|
|
const char SAM_SESSION_CREATE[] = "SESSION CREATE"; |
|
|
|
const char SAM_SESSION_CREATE_REPLY_OK[] = "SESSION STATUS RESULT=OK DESTINATION=%s\n"; |
|
|
|
const char SAM_SESSION_CREATE_REPLY_OK[] = "SESSION STATUS RESULT=OK DESTINATION=%s\n"; |
|
|
|
const char SAM_SESSION_CREATE_DUPLICATED_ID[] = "SESSION STATUS RESULT=DUPLICATED_ID\n"; |
|
|
|
const char SAM_SESSION_CREATE_DUPLICATED_ID[] = "SESSION STATUS RESULT=DUPLICATED_ID\n"; |
|
|
@ -42,7 +43,9 @@ namespace client |
|
|
|
const char SAM_NAMING_REPLY[] = "NAMING REPLY RESULT=OK NAME=ME VALUE=%s\n"; |
|
|
|
const char SAM_NAMING_REPLY[] = "NAMING REPLY RESULT=OK NAME=ME VALUE=%s\n"; |
|
|
|
const char SAM_DATAGRAM_RECEIVED[] = "DATAGRAM_RECEIVED DESTINATION=%s SIZE=%lu\n"; |
|
|
|
const char SAM_DATAGRAM_RECEIVED[] = "DATAGRAM_RECEIVED DESTINATION=%s SIZE=%lu\n"; |
|
|
|
const char SAM_NAMING_REPLY_INVALID_KEY[] = "NAMING REPLY RESULT=INVALID_KEY NAME=%s\n"; |
|
|
|
const char SAM_NAMING_REPLY_INVALID_KEY[] = "NAMING REPLY RESULT=INVALID_KEY NAME=%s\n"; |
|
|
|
const char SAM_NAMING_REPLY_KEY_NOT_FOUND[] = "NAMING REPLY RESULT=INVALID_KEY_NOT_FOUND NAME=%s\n"; |
|
|
|
const char SAM_NAMING_REPLY_KEY_NOT_FOUND[] = "NAMING REPLY RESULT=INVALID_KEY_NOT_FOUND NAME=%s\n"; |
|
|
|
|
|
|
|
const char SAM_PARAM_MIN[] = "MIN"; |
|
|
|
|
|
|
|
const char SAM_PARAM_MAX[] = "MAX"; |
|
|
|
const char SAM_PARAM_STYLE[] = "STYLE"; |
|
|
|
const char SAM_PARAM_STYLE[] = "STYLE"; |
|
|
|
const char SAM_PARAM_ID[] = "ID"; |
|
|
|
const char SAM_PARAM_ID[] = "ID"; |
|
|
|
const char SAM_PARAM_SILENT[] = "SILENT"; |
|
|
|
const char SAM_PARAM_SILENT[] = "SILENT"; |
|
|
|