aboutsummaryrefslogtreecommitdiff
path: root/src/trinityrealm/RealmSocket.cpp
diff options
context:
space:
mode:
authorSpp <none@none>2010-05-13 00:15:21 +0200
committerSpp <none@none>2010-05-13 00:15:21 +0200
commita3a8e6da2c6380de7f04bdb0f3f6939e20d493c4 (patch)
treeed9a57e9c72287b1544f39cfe1bff09492e2a2ce /src/trinityrealm/RealmSocket.cpp
parent4a448eca37a5a5409d39d4036db3793cfa27edf8 (diff)
Some warning fix
Tab to spaces Remove trailing spaces --HG-- branch : trunk
Diffstat (limited to 'src/trinityrealm/RealmSocket.cpp')
-rw-r--r--src/trinityrealm/RealmSocket.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/trinityrealm/RealmSocket.cpp b/src/trinityrealm/RealmSocket.cpp
index 2792d7fb914..581e2c0a659 100644
--- a/src/trinityrealm/RealmSocket.cpp
+++ b/src/trinityrealm/RealmSocket.cpp
@@ -52,7 +52,7 @@ RealmSocket::RealmSocket(void):
msg_queue()->high_water_mark(8*1024*1024);
msg_queue()->low_water_mark(8*1024*1024);
-
+
}
RealmSocket::~RealmSocket(void)
@@ -62,13 +62,13 @@ RealmSocket::~RealmSocket(void)
if (input_buffer_.length() != 0)
input_buffer_.release();
-
+
// delete RealmSocketObject must never be called from our code.
closing_ = true;
if (session_)
delete session_;
-
+
peer().close();
}
@@ -83,7 +83,7 @@ int RealmSocket::open(void * arg)
}
remote_address_ = addr.get_host_addr();
-
+
// Register with ACE Reactor
if (Base::open(arg) == -1)
return -1;
@@ -102,7 +102,7 @@ int RealmSocket::open(void * arg)
int RealmSocket::close(int)
{
shutdown();
-
+
closing_ = true;
remove_reference();
@@ -267,7 +267,7 @@ int RealmSocket::handle_output(ACE_HANDLE /*= ACE_INVALID_HANDLE*/)
ACE_NOTREACHED(return -1);
}
-int RealmSocket::handle_close(ACE_HANDLE h, ACE_Reactor_Mask m)
+int RealmSocket::handle_close(ACE_HANDLE h, ACE_Reactor_Mask /*m*/)
{
// As opposed to WorldSocket::handle_close, we don't need locks here.
@@ -275,7 +275,7 @@ int RealmSocket::handle_close(ACE_HANDLE h, ACE_Reactor_Mask m)
if (h == ACE_INVALID_HANDLE)
peer ().close_writer ();
-
+
if (session_ != NULL)
{
session_->OnClose();