summaryrefslogtreecommitdiff
path: root/src/sockets.cpp
diff options
context:
space:
mode:
authorNaram Qashat <cyberbotx@cyberbotx.com>2010-07-26 23:32:03 -0400
committerNaram Qashat <cyberbotx@cyberbotx.com>2010-07-26 23:32:03 -0400
commit57bb7593059242652c57aae4391b45416dc7fa70 (patch)
tree80b1b21308a0ce7e55bc5b8e278ed6cc95c07e8c /src/sockets.cpp
parent6e6b6b46aabfb3e558f66bd0fdc528e93505cf76 (diff)
Trying to make things a little more const-safe, a work in progress but this is a bit better.
Diffstat (limited to 'src/sockets.cpp')
-rw-r--r--src/sockets.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/sockets.cpp b/src/sockets.cpp
index d72b2847d..345bb7032 100644
--- a/src/sockets.cpp
+++ b/src/sockets.cpp
@@ -43,7 +43,7 @@ Socket::~Socket()
* @param sz How much to read
* @return Number of bytes recieved
*/
-const int Socket::RecvInternal(char *buf, size_t sz) const
+int Socket::RecvInternal(char *buf, size_t sz) const
{
return recv(GetSock(), buf, sz, 0);
}
@@ -52,7 +52,7 @@ const int Socket::RecvInternal(char *buf, size_t sz) const
* @param buf What to write
* @return Number of bytes written
*/
-const int Socket::SendInternal(const Anope::string &buf) const
+int Socket::SendInternal(const Anope::string &buf) const
{
return send(GetSock(), buf.c_str(), buf.length(), 0);
}
@@ -437,7 +437,7 @@ const Anope::string &ListenSocket::GetBindIP() const
/** Get the port this socket is bound to
* @return The port
*/
-const int ListenSocket::GetPort() const
+int ListenSocket::GetPort() const
{
return Port;
}