diff options
Diffstat (limited to 'include/sockets.h')
-rw-r--r-- | include/sockets.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/include/sockets.h b/include/sockets.h index 853ba0470..1f7f9acc2 100644 --- a/include/sockets.h +++ b/include/sockets.h @@ -164,15 +164,15 @@ public: * @param sz How much to read * @return Number of bytes received */ - virtual int Recv(Socket *s, char *buf, size_t sz); + virtual ssize_t Recv(Socket *s, char *buf, size_t sz); /** Write something to the socket * @param s The socket * @param buf The data to write * @param size The length of the data */ - virtual int Send(Socket *s, const char *buf, size_t sz); - int Send(Socket *s, const Anope::string &buf); + virtual ssize_t Send(Socket *s, const char *buf, size_t sz); + ssize_t Send(Socket *s, const Anope::string &buf); /** Accept a connection from a socket * @param s The socket @@ -503,7 +503,7 @@ public: * @param sz The size of the buffer * @return The amount of data read */ - int Read(char *data, size_t sz); + ssize_t Read(char *data, size_t sz); /** Mark the write end of this pipe (non)blocking * @param state true to enable blocking, false to disable blocking |