summaryrefslogtreecommitdiff
path: root/Ivy
diff options
context:
space:
mode:
Diffstat (limited to 'Ivy')
-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);