Core/AuthServer: Streamlined authserver log messages (added client port for easier identification and matching for multiple connections from same IP)
This commit is contained in:
1 parent
6900230a03
commit
e28dbe9f88
3 files changed
+35
-23
No files matched your search
@@ -31,7 +31,7 @@ RealmSocket::Session::Session(void) {}
|
||||
|
||||
RealmSocket::Session::~Session(void) { }
|
||||
|
||||
RealmSocket::RealmSocket(void) : input_buffer_(4096), session_(NULL), remote_address_()
|
||||
RealmSocket::RealmSocket(void) : input_buffer_(4096), session_(NULL), _remoteAddress()
|
||||
{
|
||||
reference_counting_policy().value(ACE_Event_Handler::Reference_Counting_Policy::ENABLED);
|
||||
|
||||
@@ -63,7 +63,8 @@ int RealmSocket::open(void * arg)
|
||||
return -1;
|
||||
}
|
||||
|
||||
remote_address_ = addr.get_host_addr();
|
||||
_remoteAddress = addr.get_host_addr();
|
||||
_remotePort = addr.get_port_number();
|
||||
|
||||
// Register with ACE Reactor
|
||||
if (Base::open(arg) == -1)
|
||||
@@ -89,9 +90,14 @@ int RealmSocket::close(int)
|
||||
return 0;
|
||||
}
|
||||
|
||||
const std::string& RealmSocket::get_remote_address(void) const
|
||||
const std::string& RealmSocket::getRemoteAddress(void) const
|
||||
{
|
||||
return remote_address_;
|
||||
return _remoteAddress;
|
||||
}
|
||||
|
||||
const uint16 RealmSocket::getRemotePort(void) const
|
||||
{
|
||||
return _remotePort;
|
||||
}
|
||||
|
||||
size_t RealmSocket::recv_len(void) const
|
||||
|
||||
Reference in new issue
Block a user