[Ace-users] [ace-users] ACE_SOCK_Dgram_Bcast to find server

Robert Thornthwaite Robert.Thornthwaite at iongeo.com
Thu Nov 8 08:57:40 CST 2007


Matthew, Douglas,

I found the problem.  Our IT department has a "security" program that
goes around and reinstalls your iptables.  The response packets were
being filtered out.  ACE works as it should.  Sorry to have taken your
time.

Regards,
Bob

> -----Original Message-----
> From: Matthew Gillen [mailto:mgillen at bbn.com] 
> Sent: Wednesday, November 07, 2007 9:52 PM
> To: Robert Thornthwaite
> Cc: ace-users at cse.wustl.edu
> Subject: Re: [ace-users] ACE_SOCK_Dgram_Bcast to find server
> 
> Hi Robert,
> A couple notes:
> Robert Thornthwaite wrote:
> > Should this not work?
> 
> >   ACE_Time_Value  mtimeout(5,0);
> 
> I would, at least temporarily, set the timeout to something 
> much higher than
> 5 seconds, just to rule out slow clients.
> 
> >       recvCount = mDgram.recv((void*)&serialServerResponse,
> >                               sizeof(serialServerResponse),
> > 				mSerialServer_Address, 0, &mtimeout);
> >       if (recvCount < 0)
> >       {
> >         ACE_DEBUG((LM_DEBUG," Timed out \n"));
> >       }
> 
> The two conditions for a timeout on recv are that it returns 
> -1 *and* sets errno=ETIME.  Be sure to check errno before you 
> conclude that it is timing out (perror() is a useful function here).
> 
> HTH,
> Matt
> 



More information about the Ace-users mailing list