|
-----Original Message-----[mailto:rpg400-l-bounces@xxxxxxxxxxxx]
From: rpg400-l-bounces@xxxxxxxxxxxx
On Behalf Of GKern@xxxxxxxxxxxxxxxxsize of
Sent: Friday, November 02, 2007 2:48 PM
To: rpg400-l@xxxxxxxxxxxx
Subject: Re: SETSOCKOPT question
Hi Scott,
"I'm really curious as to why you'd want to mess with this setting."
I was curious if this was an alternative (to enable increasing the
the data stream received in one read of the buffer) since I'm having aof
problem with my socket server program where ~I think~ the end of data
stream I'm scanning for (x'1c0d' may be found in two subsequent reads
the buffer (where one read of the buffer has the x'1c' and the nextread
starts with the x'0d' which should be (logically) attached to the lastend of
byte of the last buffer read).
I'm having a problem where when I receive data it appears that I'm
receiving beginning of data characters (x'0b') before I receive the
data characters (x'1c0d'). This has only happened 12 times out of overdata
3300 files I've received by the socket server last month.
But then I concluded that if the end of data characters being split
between two reads of the buffer really is the problem, then a larger
stream wouldn't really solve my problem. (So I abandoned the idea ofscanning
trying to enlarge the maximum segment size.)
I've since changed my socket program to hopefully correct it by
for the x'1c' (in addition to scanning for the full x'1c0d') andmaking an
assumption that when it (x'1c') is found that I can proceed as if itis
the end of the data. It's being tested right now. And as far as I knowI
should never be receiving x'1c' except to signal 'message completion'the
within the data stream received.
Thanks for responding.
Regards, Jerry
Gerald Kern - MIS Project Leader
Lotus Notes/Domino Administrator
IBM Certified RPG IV Developer
The Toledo Clinic, Inc.
4235 Secor Road
Toledo, OH 43623-4299
Phone 419-479-5535
gkern@xxxxxxxxxxxxxxxx
This e-mail message, including any attachments, is for the sole use of
intended recipient(s) and may contain confidential and privilegedmessage.
information. Any unauthorized use, disclosure or distribution is
prohibited. If you are not the intended recipient, please inform the
sender by reply e-mail and destroy this and all copies of this
--list
This is the RPG programming on the AS400 / iSeries (RPG400-L) mailing
To post a message email: RPG400-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/rpg400-l
or email: RPG400-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/rpg400-l.
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.