summaryrefslogtreecommitdiff
path: root/src/sockets.cpp
diff options
context:
space:
mode:
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;
}