tcp-ip problems on the AT&T 6386

Chantal Eide ceide at bbn.com
Sat Aug 5 00:25:34 AEST 1989


We have an ATT 6386 using Interlan's TCP/IP implementation (version?).
We are having some difficulties:
 
1. getsockname() makes a socket unusable if called after listen()
 
        /* works */                             /* does not work */
        s = socket(...)                         s = socket(...)
        bind(s, ...)                            bind(s, ...)
        getsockname(s, ...)                     listen(s, ...)
        listen(s, ...)                          getsockname(s, ...)
                                                /* s is now unusable */
   Any insights anyone?

2. Closing a tcp connection immediately flushes data still in the "pipe".
   Our application sends a bunch of data, then calls close.  The
   documentation states that by default sockets are set to "linger" for 45
   seconds.  We even tried explicitely setting linger on [with
   setsockopt(s, ... SO_LINGER) (or whatever)], to no avail.  Has anyone
   dealt with this before?



More information about the Comp.sys.att mailing list