Path: utzoo!utgpu!watserv1!watmath!att!news.cs.indiana.edu!samsung!uakari.primate.wisc.edu!sdd.hp.com!elroy.jpl.nasa.gov!euclid.jpl.nasa.gov!pjs From: pjs@euclid.jpl.nasa.gov (Peter Scott) Newsgroups: comp.protocols.tcp-ip Subject: Novice questions on TCP programming Message-ID: <1991Feb21.222825.4217@elroy.jpl.nasa.gov> Date: 21 Feb 91 22:28:25 GMT Sender: news@elroy.jpl.nasa.gov (Usenet) Reply-To: pjs@euclid.jpl.nasa.gov Followup-To: comp.protocols.tcp-ip Organization: Jet Propulsion Laboratory, NASA/Caltech Lines: 32 Nntp-Posting-Host: euclid.jpl.nasa.gov I have just started programming in TCP and am up to my ears in manuals. I'm trying to get the basic concepts I need with the aid of Douglas Comer's book, but it's hard to see the wood for the trees; there's so much information there that I don't need, it's hard to tell what I do need. I have a simple application to complete: a server running on SunOS catches binary records sent from a MicroVAX running Multinet on VMS, which records are from a file on a machine available via DECNET to the Microvax but not the Sun. The idea is to mirror the file on the Sun; hence I have a detached process on the MicroVAX checking it at appropriate intervals. I have been able to figure out how to create sockets and make connections and have transferred data. So far so good. The problems come in trying to handle failure modes, e.g., one machine up, one down. I haven't been able to find out what happens when the VAX attempts a socket_write() but the Sun has gone down in the meantime; is there a timeout for the write? How long is it and how do I change it? Or are there timeouts only on connect()s, and ditto? Would I get an ENXIO error if the write failed? I'm trying to determine what's fatal and what isn't, both when I'm trying to make a connection and after it's been made; would any error on the write() call mean that I'd have to go back to trying to reconnect? I realize that I may be hopelessly lost; I've seen enough novice questions in areas I do know something about to know what kinds of mistakes can be made. Thanks in advance. -- This is news. This is your | Peter Scott, NASA/JPL/Caltech brain on news. Any questions? | (pjs@euclid.jpl.nasa.gov) Brought to you by Super Global Mega Corp .com