|
|
@ -680,8 +680,15 @@ namespace client |
|
|
|
{ |
|
|
|
{ |
|
|
|
if (!ecode) |
|
|
|
if (!ecode) |
|
|
|
{ |
|
|
|
{ |
|
|
|
LogPrint ("New SAM connection from ", socket->GetSocket ().remote_endpoint ()); |
|
|
|
boost::system::error_code ec; |
|
|
|
socket->ReceiveHandshake (); |
|
|
|
auto ep = socket->GetSocket ().remote_endpoint (ec); |
|
|
|
|
|
|
|
if (!ec) |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
LogPrint ("New SAM connection from ", ep); |
|
|
|
|
|
|
|
socket->ReceiveHandshake (); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
else |
|
|
|
|
|
|
|
LogPrint (eLogError, "SAM connection from error ", ec.message ()); |
|
|
|
} |
|
|
|
} |
|
|
|
else |
|
|
|
else |
|
|
|
LogPrint ("SAM accept error: ", ecode.message ()); |
|
|
|
LogPrint ("SAM accept error: ", ecode.message ()); |
|
|
|