🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: comp.os.os2.programmer
1 messages
1 total messages Started by Colin Goldstein Sat, 06 Apr 1991 09:19
Re: Problems with IBMs TCP/IP V1.1 for OS/2
#2515
Author: Colin Goldstein
Date: Sat, 06 Apr 1991 09:19
31 lines
2109 bytes
The News Manager)
Nntp-Posting-Host: la
Reply-To: colin@la.novell.com (Colin Goldstein)
Organization: Novell, Inc., San Jose, Ca
References: <ZSNPX4T@nadia.stgt.sub.org>
Date: Thu, 4 Apr 1991 16:17:06 GMT

In article <ZSNPX4T@nadia.stgt.sub.org> chlebosc@nadia.stgt.sub.org (Claudius Chlebosch) writes:
>The server calls the recv() function, which returns with 4360 bytes
>received. The client has to call the recv() function once again to
>get the remaining 15640 >bytes of the segment. In my opinion this
>behaviour is not correct.
>

I don't have the IBM TCP/IP package, but the TCP/IP toolkit from Novell
works the same way. Although stream sockets give reliable delivery, there
is no way to be sure that all the data will arrive at the same time. It
is therefore the applications responsibility to recv() until all the data
is read. Keep a count of bytes read or use select() to determine if more
data is available.

Colin
--
/-------------------------------------------------------------------\
|  The views expressed here are my own.  | Norm, what are you       |
|  They do not necessarily represent     | up too???                |
|  the views expressed by my employer.   |                          |
|                         ---------------| My ideal weight if I     |
|  colin@novell.com       | Novell Inc., | were 11 feet tall.       |
|  uunet!novell!colin     | San Jose     |                 - Cheers |
\-------------------------------------------------------------------/
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads