summaryrefslogtreecommitdiff
path: root/Bus
diff options
context:
space:
mode:
authorfcolin2007-02-01 13:05:50 +0000
committerfcolin2007-02-01 13:05:50 +0000
commit80fba06998c99d0e1e717dfc3a6911fb82a8a118 (patch)
treeff7d65acda4943df7de9e5520d0cb9d556b89730 /Bus
parentcd108b499d55bdc27a8cbff360ae6097f5a6dbb2 (diff)
downloadivy-cplusplus-80fba06998c99d0e1e717dfc3a6911fb82a8a118.zip
ivy-cplusplus-80fba06998c99d0e1e717dfc3a6911fb82a8a118.tar.gz
ivy-cplusplus-80fba06998c99d0e1e717dfc3a6911fb82a8a118.tar.bz2
ivy-cplusplus-80fba06998c99d0e1e717dfc3a6911fb82a8a118.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)
Diffstat (limited to 'Bus')
-rw-r--r--Bus/Ivy/ThreadedSocket.h9
1 files changed, 2 insertions, 7 deletions
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);