Pointed out by Lee a while ago.
-const char jbsockets_rcs[] = "$Id: jbsockets.c,v 1.65 2009/07/22 22:27:16 fabiankeil Exp $";
+const char jbsockets_rcs[] = "$Id: jbsockets.c,v 1.66 2009/09/06 15:22:31 fabiankeil Exp $";
/*********************************************************************
*
* File : $Source: /cvsroot/ijbswa/current/jbsockets.c,v $
/*********************************************************************
*
* File : $Source: /cvsroot/ijbswa/current/jbsockets.c,v $
*********************************************************************/
int data_is_available(jb_socket fd, int seconds_to_wait)
{
*********************************************************************/
int data_is_available(jb_socket fd, int seconds_to_wait)
{
fd_set rfds;
struct timeval timeout;
int n;
fd_set rfds;
struct timeval timeout;
int n;
/*
* XXX: Do we care about the different error conditions?
*/
/*
* XXX: Do we care about the different error conditions?
*/
+ return ((n == 1) && (1 == recv(fd, buf, 1, MSG_PEEK)));