diff options
author | weidai <weidai@57ff6487-cd31-0410-9ec3-f628ee90f5f0> | 2005-07-12 04:23:32 +0000 |
---|---|---|
committer | weidai <weidai@57ff6487-cd31-0410-9ec3-f628ee90f5f0> | 2005-07-12 04:23:32 +0000 |
commit | d5ebf62bed594d1fe6ab616a6bbcbcf0a5892d47 (patch) | |
tree | 4b03760892a97a9bc452ebe8b7793bbebd402ad4 /socketft.h | |
parent | fa39f51809b4da54a5c2adb3e183b1a625cefb92 (diff) | |
download | cryptopp-d5ebf62bed594d1fe6ab616a6bbcbcf0a5892d47.tar.gz |
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
Diffstat (limited to 'socketft.h')
-rw-r--r-- | socketft.h | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -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);} |