From d5ebf62bed594d1fe6ab616a6bbcbcf0a5892d47 Mon Sep 17 00:00:00 2001 From: weidai Date: Tue, 12 Jul 2005 04:23:32 +0000 Subject: port to MSVC .NET 2005 beta 2 git-svn-id: svn://svn.code.sf.net/p/cryptopp/code/trunk/c5@198 57ff6487-cd31-0410-9ec3-f628ee90f5f0 --- socketft.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'socketft.h') diff --git a/socketft.h b/socketft.h index a51fb7b..c7d33fd 100644 --- a/socketft.h +++ b/socketft.h @@ -77,8 +77,8 @@ public: bool Connect(const sockaddr* psa, socklen_t saLen); bool Accept(Socket& s, sockaddr *psa=NULL, socklen_t *psaLen=NULL); void GetSockName(sockaddr *psa, socklen_t *psaLen); - unsigned int Send(const byte* buf, unsigned int bufLen, int flags=0); - unsigned int Receive(byte* buf, unsigned int bufLen, int flags=0); + unsigned int Send(const byte* buf, size_t bufLen, int flags=0); + unsigned int Receive(byte* buf, size_t bufLen, int flags=0); void ShutDown(int how = SD_SEND); void IOCtl(long cmd, unsigned long *argp); @@ -130,7 +130,7 @@ public: #else bool MustWaitForResult() {return true;} #endif - bool Receive(byte* buf, unsigned int bufLen); + bool Receive(byte* buf, size_t bufLen); unsigned int GetReceiveResult(); bool EofReceived() const {return m_eofReceived;} @@ -161,7 +161,7 @@ public: #else bool MustWaitForResult() {return true;} #endif - void Send(const byte* buf, unsigned int bufLen); + void Send(const byte* buf, size_t bufLen); unsigned int GetSendResult(); void SendEof() {m_s.ShutDown(SD_SEND);} -- cgit v1.2.1