summaryrefslogtreecommitdiff
path: root/Bus/Ivy
diff options
context:
space:
mode:
authorfcolin2007-02-01 13:05:12 +0000
committerfcolin2007-02-01 13:05:12 +0000
commit684288e4d2e2fc033a9f9595b0608cdd75ece742 (patch)
tree2452242fe633dfb9bf37cecaa2f003c83301dc50 /Bus/Ivy
parentfc7a1c788c6f6b1bcc160281228581816a8f568c (diff)
downloadivy-cplusplus-684288e4d2e2fc033a9f9595b0608cdd75ece742.zip
ivy-cplusplus-684288e4d2e2fc033a9f9595b0608cdd75ece742.tar.gz
ivy-cplusplus-684288e4d2e2fc033a9f9595b0608cdd75ece742.tar.bz2
ivy-cplusplus-684288e4d2e2fc033a9f9595b0608cdd75ece742.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 13)
Diffstat (limited to 'Bus/Ivy')
-rw-r--r--Bus/Ivy/ThreadedSocket.cxx12
1 files changed, 10 insertions, 2 deletions
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()