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:
+3
-3
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user