summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorfcolin2007-02-01 13:05:50 +0000
committerfcolin2007-02-01 13:05:50 +0000
commit19ce23a32f459a91a76035f2fee5c859066fa5fa (patch)
tree578c7c77120107d4cc5960414d0a3a2e934d40c4
parentf65446ec7d815cd429f36c306de5905712ec89af (diff)
downloadivy-cplusplus-19ce23a32f459a91a76035f2fee5c859066fa5fa.zip
ivy-cplusplus-19ce23a32f459a91a76035f2fee5c859066fa5fa.tar.gz
ivy-cplusplus-19ce23a32f459a91a76035f2fee5c859066fa5fa.tar.bz2
ivy-cplusplus-19ce23a32f459a91a76035f2fee5c859066fa5fa.tar.xz
Utilisateur : Fcolin Date : 14/09/01 Heure : 16:44 Archivé dans $/Ivy Commentaire: correction BUG Ivy socket Listen apres start Listener et regexp_in.resize (vss 7)
-rw-r--r--Ivy/ThreadedSocket.h9
1 files changed, 2 insertions, 7 deletions
diff --git a/Ivy/ThreadedSocket.h b/Ivy/ThreadedSocket.h
index ab8e3cd..1827c52 100644
--- a/Ivy/ThreadedSocket.h
+++ b/Ivy/ThreadedSocket.h
@@ -42,6 +42,7 @@ public:
int Connect(const char * lpszHostAddress, unsigned int nHostPort);
int Connect(const SOCKADDR* lpSockAddr, int nSockAddrLen);
+ int Listen(int nConnectionBacklog=5);
virtual int Receive(void* lpBuf, int nBufLen, int nFlags = 0);
@@ -87,13 +88,7 @@ inline int IOCtl(long lCommand, unsigned long* lpArgument)
{
return ioctlsocket(m_hSocket, lCommand, lpArgument);
}
-inline int Listen(int nConnectionBacklog=5)
- {
- int err = listen(m_hSocket, nConnectionBacklog);
- if ( !err )
- listen_mode = true;
- return err;
- }
+
inline int ReceiveFrom(void* lpBuf, int nBufLen, SOCKADDR* lpSockAddr, int* lpSockAddrLen, int nFlags = 0)
{
int lg = recvfrom(m_hSocket, (LPSTR)lpBuf, nBufLen, nFlags, lpSockAddr, lpSockAddrLen);