1
0
mirror of https://github.com/anope/anope.git synced 2026-07-02 02:46:39 +02:00

Trying to make things a little more const-safe, a work in progress but this is a bit better.

This commit is contained in:
Naram Qashat
2010-07-26 23:32:03 -04:00
parent 6e6b6b46aa
commit 57bb759305
34 changed files with 143 additions and 141 deletions
+3 -3
View File
@@ -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;
}