From 684288e4d2e2fc033a9f9595b0608cdd75ece742 Mon Sep 17 00:00:00 2001 From: fcolin Date: Thu, 1 Feb 2007 13:05:12 +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 13) --- Bus/Ivy/ThreadedSocket.cxx | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) (limited to 'Bus/Ivy/ThreadedSocket.cxx') diff --git a/Bus/Ivy/ThreadedSocket.cxx b/Bus/Ivy/ThreadedSocket.cxx index 10af005..be2bdf0 100644 --- a/Bus/Ivy/ThreadedSocket.cxx +++ b/Bus/Ivy/ThreadedSocket.cxx @@ -143,6 +143,13 @@ void CThreadedSocket::Close() } } +int CThreadedSocket::Listen(int nConnectionBacklog) +{ + int err = listen(m_hSocket, nConnectionBacklog); + if ( !err ) + listen_mode = true; + return StartListener(); +} int CThreadedSocket::Connect(const SOCKADDR* lpSockAddr, int nSockAddrLen) { @@ -171,7 +178,7 @@ int CThreadedSocket::Connect(const SOCKADDR* lpSockAddr, int nSockAddrLen) return err; } connect_pending = true; - return 0; + return StartListener(); } int CThreadedSocket::Connect(const char * lpszHostAddress, UINT nHostPort) @@ -332,7 +339,8 @@ int CThreadedSocket::Socket(int nSocketType, int nProtocolType, int nAddressForm { return m_hSocket; } - return StartListener(); + return m_hSocket; + //return StartListener(); } int CThreadedSocket::StartListener() -- cgit v1.1