|
@ -354,6 +354,11 @@ SvrHandling::~SvrHandling() |
|
|
{ |
|
|
{ |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
void SvrHandling::run() |
|
|
|
|
|
{ |
|
|
|
|
|
this->run(SVR_DEFAULT_PORT); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
void SvrHandling::run(int port) |
|
|
void SvrHandling::run(int port) |
|
|
{ |
|
|
{ |
|
|
cout << timestamp() + "Starting " << SVR_NAME << "\n"; |
|
|
cout << timestamp() + "Starting " << SVR_NAME << "\n"; |
|
@ -404,7 +409,7 @@ bool SvrHandling::handshakeAccepted(SocketObject& client) |
|
|
{ |
|
|
{ |
|
|
c_state = waiting; |
|
|
c_state = waiting; |
|
|
message = SVR_FAILED; |
|
|
message = SVR_FAILED; |
|
|
cout << timestamp() + "Handshake failed.\n"; |
|
|
|
|
|
|
|
|
cout << timestamp() + "Handshake failed. " cout << "Invalid recv msg \'" << message <<"\'"; |
|
|
} |
|
|
} |
|
|
client.Send(message); |
|
|
client.Send(message); |
|
|
return(c_state == accepted); |
|
|
return(c_state == accepted); |
|
|