Path: utzoo!mnetor!uunet!husc6!tut.cis.ohio-state.edu!mailrus!nrl-cmf!ames!eos!aurora!labrea!decwrl!pyramid!prls!philabs!micomvax!zap!iros1!mcgill-vision!mouse From: mouse@mcgill-vision.UUCP (der Mouse) Newsgroups: comp.protocols.tcp-ip Subject: Re: Need help with UNIX tcp Message-ID: <1004@mcgill-vision.UUCP> Date: 17 Mar 88 05:52:55 GMT References: <8802181625.AA27348@cod.nosc.mil> Organization: McGill University, Montreal Lines: 18 In article <8802181625.AA27348@cod.nosc.mil>, neerma@COD.NOSC.MIL (Merle A. Neer) writes: > The problem simply stated is this: the user process cannot get the > status of its tcp connections from UNIX. > Have any UNIX guru-types ever considered offering a > 'status(myconnect)' call? We'll gladly pay for one. If you're running 4.3, I can give you a socket ioctl to return the status of the connection (as in one of the values in ../netinet/tcp_fsm.h, like TCPS_LISTEN, TCPS_ESTABLISHED, TCPS_CLOSING, etc). It's not really hard; it'd take all of an afternoon. Just drop another ioctl into ../h/ioctl.h and into ../netinet/tcp_usrreq.c (in the if req == PRU_CONTROL statement). der Mouse uucp: mouse@mcgill-vision.uucp arpa: mouse@larry.mcrcim.mcgill.edu