> I typed in uname -a, this is what came out of it...
> 
> SunOS vranx 5.8 Generic_108528-12 sun4m sparc SUNW,SPARCstation-4
> 
> did this help?
> > > Init_socket: SO_DONTLINGER: Option not supported by protocol
> > >
> > > What does this mean?

in order of quoting:
a)    it probably helps him :)
and
b)    The option not supported by protocal means that your OS 
has a different structure for LINGER than a normal** OS does.
for your specific OS locate your socket.h file and check to see 
the SO_ types that you have.. also I would check to see what 
protocol family you are using... AF_INET, PF_INET? make sure that 
you have the family chosen correctly, in stock ROM I think the
type to use is AF_INET..

The error that you have shown above you should never get. I dont 
know about your version of rom, but in mine (cross-platform win Win32)
I have the following bit of code, which checks to see if SO_DONTLINGER
exists, in my init_socket() function:

#if defined( SO_DONTLINGER ) && !defined( SYSV )
  {
  struct linger ld;
  ld.l_onoff  = 1;
  ld.l_linger = 1000;
  
  if ( setsockopt( fd, SOL_SOCKET, SO_DONTLINGER, 
     (char *) &ld, sizeof( ld ) ) < 0 )
   {
   logf( "Init_socket: SO_DONTLINGER %s", strerror(errno));
#if !defined( WIN32 )
   close( fd );
#else
   closesocket( fd );
#endif
   exit( 1 );
   }
  }
#endif

Once again, I dont know if stock rom has this bit of code, if not
try the list for someone with a more thorough understanding of 
sockets in SunOS..

Good Luck,

Steve, stuck at work and reading mail to pass the time

** open for interpretation



Reply via email to