From 80fba06998c99d0e1e717dfc3a6911fb82a8a118 Mon Sep 17 00:00:00 2001 From: fcolin Date: Thu, 1 Feb 2007 13:05:50 +0000 Subject: 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) --- Bus/Ivy/ThreadedSocket.h | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) (limited to 'Bus') diff --git a/Bus/Ivy/ThreadedSocket.h b/Bus/Ivy/ThreadedSocket.h index ab8e3cd..1827c52 100644 --- a/Bus/Ivy/ThreadedSocket.h +++ b/Bus/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); -- cgit v1.1