Path: utzoo!utgpu!jarvis.csri.toronto.edu!cs.utexas.edu!swrinde!zaphod.mps.ohio-state.edu!rpi!crdgw1!ge-dab!puma!andrew.ATL.GE.COM!jnixon From: jnixon@andrew.ATL.GE.COM (John F Nixon) Newsgroups: comp.realtime Subject: Re: Socket communication under VxWorks Keywords: Losing bytes Message-ID: <213@puma.ge.com> Date: 27 Feb 90 21:28:49 GMT References: <8202@pt.cs.cmu.edu> Sender: news@puma.ge.com Lines: 13 hmp@cive.ri.cmu.edu (Henning Pangels) writes: >I'm using a TCP/IP socket (AF_INET, SOCK_STREAM) to transmit messages >between processors on the backplane. Unfortunately, it appears that >for some reason, the last byte sent is not received at the other end. Do you do only a single read for it? SOCK_STREAM does not guarantee that a single write will show up at the other end in one piece. You might try waiting a bit and reading again, or MSG_PEEKing till all the data is there. -- ---- jnixon@atl.ge.com ...steinmetz!atl.decnet!jnxion