Path: utzoo!utgpu!attcan!uunet!lll-winken!ames!apple!rutgers!uwvax!tank!uxc!uxc.cso.uiuc.edu!ux1.cso.uiuc.edu!uxh.cso.uiuc.edu!norman From: norman@uxh.cso.uiuc.edu Newsgroups: comp.lang.c Subject: sockets/waiting Message-ID: <12300001@uxh.cso.uiuc.edu> Date: 24 May 89 00:56:00 GMT Lines: 23 Nf-ID: #N:uxh.cso.uiuc.edu:12300001:000:860 Nf-From: uxh.cso.uiuc.edu!norman May 23 19:56:00 1989 Is there a way to check how much data you have waiting in a socket - so you know if a full message (fixed length known in advance) has arrived. Esp. if you do not want to bother reading it unless you have a full message and would rather do some processing in the meantime, on a cray for instance. Is it possible to receive partial length messages even if the full messages are (say) only a few dozen bytes long and are sent out together to you. Should you be concerned about slow internet transmission rates fouling up your design if message lengths were to increase greatly. And messages start getting sent piecemeal. Should one assume that there will be a natural length that messages will generally arrive with at the sockets. I realize my view of the socket interface is probably flawed. Any suggestions? -Salman e-mail: burkie@rigel.astro.uiuc.edu