error 添加ip port
This commit is contained in:
parent
576ff5cb63
commit
5045bbcee9
@ -66,7 +66,12 @@ bool MasterSvr::Connected()
|
|||||||
|
|
||||||
void MasterSvr::on_error(a8::TcpClient* sender, int errorId)
|
void MasterSvr::on_error(a8::TcpClient* sender, int errorId)
|
||||||
{
|
{
|
||||||
a8::UdpLog::Instance()->Error("MasterSvr errorid=%d", {errorId});
|
a8::UdpLog::Instance()->Error("MasterSvr errorid=%d remote_ip:%s remote_port:%d",
|
||||||
|
{
|
||||||
|
errorId,
|
||||||
|
sender->remote_address,
|
||||||
|
sender->remote_port
|
||||||
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
void MasterSvr::on_connect(a8::TcpClient* sender)
|
void MasterSvr::on_connect(a8::TcpClient* sender)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user