Path: utzoo!attcan!utgpu!watserv1!watmath!att!emory!swrinde!zaphod.mps.ohio-state.edu!mips!ultra!wayne From: wayne@ultra.com (Wayne Hathaway) Newsgroups: comp.protocols.tcp-ip Subject: BSD sockets question Summary: shutdown(2) == close()? Keywords: sockets, shutdown, close Message-ID: <1990Dec7.172324.4260@ultra.com> Date: 7 Dec 90 17:23:24 GMT Reply-To: wayne@ultra.com (Wayne Hathaway) Distribution: na Organization: Ultra Network Technologies Lines: 23 Sorry to bother the TCP/IP group with a BSD-sockets-specific question, but it really does relate to protocol behavior. Anyway, my question is the following: For connected stream sockets, are there ANY semantic differences between shutdown(2) and close()? If so, can somebody please explain them? (For example, if multiple processes are sharing a connected socket, only the LAST close() will have an effect; is this true with shutdown(2)? Is "data in the pipe" treated any differently? Etc ...) Oh, when I say "shutdown(2)" I mean the shutdown() system call with a "how" parameter of "2," meaning shutdown both read and write; I am NOT alluding to section 2 of the manual. Thanks muchly! Wayne Hathaway domain: wayne@Ultra.COM Ultra Network Technologies uucp: ...!ames!ultra!wayne 101 Daggett Drive phone: 408-922-0100 x132 San Jose, CA 95134 direct: Hey, you! PS: For that matter, can anybody explain what shutdown does with a connected DATAGRAM socket? Thnx again.