summaryrefslogtreecommitdiff
path: root/socketft.h
diff options
context:
space:
mode:
authorweidai <weidai@57ff6487-cd31-0410-9ec3-f628ee90f5f0>2005-07-12 04:23:32 +0000
committerweidai <weidai@57ff6487-cd31-0410-9ec3-f628ee90f5f0>2005-07-12 04:23:32 +0000
commitd5ebf62bed594d1fe6ab616a6bbcbcf0a5892d47 (patch)
tree4b03760892a97a9bc452ebe8b7793bbebd402ad4 /socketft.h
parentfa39f51809b4da54a5c2adb3e183b1a625cefb92 (diff)
downloadcryptopp-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.h8
1 files changed, 4 insertions, 4 deletions
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);}