> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:owner-u2-
> [EMAIL PROTECTED] On Behalf Of Tony G
> Sent: Wednesday, September 19, 2007 4:53 PM
> To: [email protected]
> Subject: RE: [U2] Telnet error 1067 in Universe PE
> 
> Probably AssUMed the bind was successful:
> 
> if(-1 == bind(i32SocketFD,(struct sockaddr*) &stSockAddr,
> sizeof(stSockAddr)))
> {
>   // impossible, environment is perfect, can't possibly fail here.  ;)
> }
> if(-1 == listen(i32SocketFD, 10))
> {
>   // error 100038, don't tell anyone, just die
>   exit(-1);
> }
> 

  I hope I'm not missing sarcasm here. If bind() was being trapped on errors
then listen() wouldn't have been executed, so my statement about listen() is
false. I should have said bind(), to be programmatically correct in that
case. I call "listen" the whole 'socket(),bind(),listen()' code thing.

----------------------------------------
Glen Batchelor
IT Director
All-Spec Industries
 phone: (910) 332-0424
   fax: (910) 763-5664
E-mail: [EMAIL PROTECTED]
   Web: http://www.all-spec.com
  Blog: http://blog.all-spec.com
----------------------------------------


> Glen Batchelor wrote:
> > Winsock 100038 is "Error - that is not a socket". Something, in the
> > code, is trying to listen on a non-socket file descriptor. Naughty
> > Naughty!
> -------
> u2-users mailing list
> [email protected]
> To unsubscribe please visit http://listserver.u2ug.org/
-------
u2-users mailing list
[email protected]
To unsubscribe please visit http://listserver.u2ug.org/

Reply via email to