Re: Question about select function [code of probe.c]

2004-06-25 Thread Lev Pliner
#include #include #include void probe ( rqstp, transp ) struct svc_req *rqstp; SVCXPRT *transp; { switch ( rqstp->rq_proc ) { case NULLPROC: svc_sendreply ( transp, xdr_void, (void *)NULL ); return; default: svcerr_noproc ( transp ); return; }; }; int

Re: Question about select function

2004-06-25 Thread Lev Pliner
PROTECTED]> Sent: Friday, June 18, 2004 3:41 PM Subject: Question about select function > Dear forum members! > > I'm writing a multithreaded rpc program. The following is a part of my > program that causes a error: > > fd_set readfds; > int size = getdt

Re: Question about select function

2004-06-18 Thread Igor Pechtchanski
On Fri, 18 Jun 2004, Lev Pliner wrote: > Dear forum members! > > I'm writing a multithreaded rpc program. The following is a part of my > program that causes a error: > > fd_set readfds; > int size = getdtablesize ( ); > > while ( 1 ) > { > readfds = svc_fdset; Where is svc_fdset comi

Question about select function

2004-06-18 Thread Lev Pliner
Dear forum members! I'm writing a multithreaded rpc program. The following is a part of my program that causes a error: fd_set readfds; int size = getdtablesize ( ); while ( 1 ) { readfds = svc_fdset; switch ( select ( size, &readfds, NULL, NULL, NULL ) ) { case -1: