Project::OSiRiON - Git repositories
Project::OSiRiON
News . About . Screenshots . Downloads . Forum . Wiki . Tracker . Git
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStijn Buys <ingar@osirion.org>2008-07-25 18:30:10 +0000
committerStijn Buys <ingar@osirion.org>2008-07-25 18:30:10 +0000
commit812bb37b7e73104d97da35eb3e66046495aaa305 (patch)
tree63ee32e2c53d35aeb3dc219c8caa211de5fbf0cd /src/core/netconnection.cc
parentabe6c3dc6e6f9df40345d6aaf19f12fdfa3f3024 (diff)
minor cleanups
Diffstat (limited to 'src/core/netconnection.cc')
-rw-r--r--src/core/netconnection.cc12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/core/netconnection.cc b/src/core/netconnection.cc
index e415518..1bda423 100644
--- a/src/core/netconnection.cc
+++ b/src/core/netconnection.cc
@@ -313,7 +313,7 @@ void NetConnection::transmit()
}
// queue a mmessage to the server
-void NetConnection::send(std::string const &msg)
+void NetConnection::send_raw(std::string const &msg)
{
sendq.append(msg);
}
@@ -334,7 +334,7 @@ void NetConnection::send_connect()
{
std::ostringstream msg;
msg << "connect " << PROTOCOLVERSION << "\n";
- this->send(msg.str());
+ this->send_raw(msg.str());
}
// send a "pif" player info message to the server
@@ -346,7 +346,7 @@ void NetConnection::send_playerinfo()
msg << "pif ";
localplayer()->serialize_client_update(msg);
msg << '\n';
- this->send(msg.str());
+ this->send_raw(msg.str());
localplayer()->player_dirty = false;
}
@@ -358,7 +358,7 @@ void NetConnection::send_clientupdate(Entity *entity)
msg << "cup " << entity->id() << " ";
entity->serialize_client_update(msg);
msg << '\n';
- this->send(msg.str());
+ this->send_raw(msg.str());
}
// send a "cmd" command line message to the server
@@ -367,7 +367,7 @@ void NetConnection::send_command(std::string const &cmdline)
std::string msg("cmd ");
msg.append(cmdline);
msg += '\n';
- this->send(msg);
+ this->send_raw(msg);
}
// send a "say" chat message message to the server
@@ -376,7 +376,7 @@ void NetConnection::send_say(std::string const &text)
std::string msg("say ");
msg.append(text);
msg += '\n';
- this->send(msg);
+ this->send_raw(msg);
}
// parse incoming client messages