Path: utzoo!utgpu!cunews!bnrgate!brtph3!brchh104!brchs1!bnr.ca!rice.edu!sun-spots-request From: rbs@aiai.ed.ac.uk (Robert Scott) Newsgroups: comp.sys.sun Subject: Pipes, sockets and coms processes Keywords: Networks Message-ID: <1180@brchh104.bnr.ca> Date: 10 Jan 91 17:03:46 GMT Sender: news@brchh104.bnr.ca Organization: Sun-Spots Lines: 19 Approved: Sun-Spots@rice.edu X-Sun-Spots-Digest: Volume 10, Issue 4, message 12 X-Note: Submissions: sun-spots@rice.edu, Admin: sun-spots-request@rice.edu I'm trying to write a program to get a number of processes distributed over a number of Sun SPARC stations to exchange information using sockets over the ethernet. My question is: Given two processes communicating via a socket, how does the receiver know the length of the senders message? In the relevant manual on interprocessor communication the examples given send fixed length messages. I need to be able to send variable length messages where the receiver won't know message length at compile time. Any help with this, or any general advice on how to write such monsters would be greatly appreciated. Rob Scott Department of AI rbs@uk.ac.ed.aiai University of Edinburgh SCOTLAND