HP3000-L Archives

August 2002, Week 2

HP3000-L@RAVEN.UTC.EDU

Options: Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Subject:
From:
Andrew Cartledge <[log in to unmask]>
Reply To:
Andrew Cartledge <[log in to unmask]>
Date:
Tue, 13 Aug 2002 10:37:34 -0400
Content-Type:
text/plain
Parts/Attachments:
text/plain (20 lines)
Does anyone have any suggestions how I might handle data of unknown length

A simple novice in handlng data posted through a socket, my experience of
receiving data either involves knowing upfront how many bytes of data to
expect or interrogating some part of the first part of the buffer for a
number to tell me how much to expect.

I am expecting a third party to post data through to my listener but as yet
cannot get a reasonable answer regarding length or termination character.

I will be using NetIPC/Cobol (ought to use Berkley/C for portability but I
may not have the time to work out)

PS Rubbish cheap keyboard so forgive any typos.

TIA

* To join/leave the list, search archives, change list settings, *
* etc., please visit http://raven.utc.edu/archives/hp3000-l.html *

ATOM RSS1 RSS2