|
Do you have a header denoting packet size? If not, do you have a delimiter? If the answer is 'No' to both of these questions then it is not possible to determine the end of the logical data packet. The TCP protocol will 'split' the packets and the only guarantee you have is that they will be put back in sequence. hth, Ken -----Original Message----- From: rpg400-l-bounces@xxxxxxxxxxxx [mailto:rpg400-l-bounces@xxxxxxxxxxxx] On Behalf Of Brad Stone Sent: Wednesday, February 01, 2006 1:53 PM To: RPG programming on the AS400 / iSeries Subject: Weird Sockets Issue... Currently playing around with some client sockets programming and having a weird issue I never experienced before. When I run my application one of the response I get back from the server isn't always complete. The odd thing is, when I use debug to debug the app, it is always complete. I shut off debug, and it doesn't receive the entire response, which technically would require another read from the socket to get the rest of the data (actually maybe more than 1 read). But, I can't just add another read, because if it DOES get all the data, it hangs on the 2nd read. I'm using select, but on reads when I get all the data the first time, the select gives me a timeout error. Does this make sense at all? LOL... -- This is the RPG programming on the AS400 / iSeries (RPG400-L) mailing list 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.