Path: utzoo!attcan!uunet!cs.utexas.edu!tut.cis.ohio-state.edu!purdue!haven!adm!news From: stanonik@nprdc.navy.mil (Ron Stanonik) Newsgroups: comp.unix.wizards Subject: socket bound? Message-ID: <23651@adm.BRL.MIL> Date: 13 Jun 90 20:43:35 GMT Sender: news@adm.BRL.MIL Lines: 13 How can I tell if a socket (4.3bsd, sunos, et al) is bound? getsockname returns a struct sockaddr_in regardless. Checking sin_port? It does seem to be 0 when unbound, but is this reliable? Next question, how can I unbind a socket? unlink it? Are either of these documented in TFM? Thanks, Ron Stanonik stanonik@nprdc.navy.mil