-bool wxSocketBase::Wait(long seconds, long microseconds)
-{
- return _Wait(seconds, microseconds, REQ_ACCEPT | REQ_CONNECT |
- REQ_READ | REQ_WRITE | REQ_LOST);
-}
-
-bool wxSocketBase::WaitForRead(long seconds, long microseconds)
-{
- return _Wait(seconds, microseconds, REQ_READ | REQ_LOST);
-}
-
-bool wxSocketBase::WaitForWrite(long seconds, long microseconds)
-{
- return _Wait(seconds, microseconds, REQ_WRITE);
-}
-
-bool wxSocketBase::WaitForLost(long seconds, long microseconds)
-{
- return _Wait(seconds, microseconds, REQ_LOST);
-}
-
-// --------------------------------------------------------------
-// --------- wxSocketBase callback management -------------------
-// --------------------------------------------------------------
-
-#if defined(__WXMOTIF__) || defined(__WXXT__) || defined(__WXGTK__)
-#if defined(__WXMOTIF__) || defined(__WXXT__)
-static void wx_socket_read(XtPointer client, int *fid,
- XtInputId *WXUNUSED(id))
-#define fd *fid
-#else
-static void wx_socket_read(gpointer client, gint fd,
- GdkInputCondition WXUNUSED(cond))
-#define fd fd
-#endif
-{
- wxSocketBase *sock = (wxSocketBase *)client;
- char c;
- int i;
-
- i = recv(fd, &c, 1, MSG_PEEK);
-
- if (i == -1 && (sock->NeededReq() & wxSocketBase::REQ_ACCEPT))