diff options
| author | weidai <weidai11@users.noreply.github.com> | 2005-07-12 04:23:32 +0000 |
|---|---|---|
| committer | weidai <weidai11@users.noreply.github.com> | 2005-07-12 04:23:32 +0000 |
| commit | 1db8ea50840eb47f0f7d8f3c30d8e0916932ce90 (patch) | |
| tree | 4b03760892a97a9bc452ebe8b7793bbebd402ad4 /socketft.h | |
| parent | 31068bd68590654dc218bbb183a2ca71bb4af08b (diff) | |
| download | cryptopp-git-1db8ea50840eb47f0f7d8f3c30d8e0916932ce90.tar.gz | |
port to MSVC .NET 2005 beta 2
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);} |
