🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.sun
Article #6377

can ONE single sendto() send all 8K data in Sun UDP-based RPC?

#6377
From: TAYBENGH
Date: Wed, 09 Jan 1991 01:42
23 lines
1634 bytes
I am always puzzled about 8K limitation imposed by Sun UDP-based RPC
implementation. After reading the source code, I realized that the 8K is
actually imposed by RPC itself when creating buffer for XDR_MEM.  However,
I wondered is it possible to send all 8K data in ONE single socket
sendto() as shown in Sun RPC source code? As most of the people pointed
out, sendto() NORMALLY can only send 1-2K (implementation dependent) of
data.  What if the sendto() can NOT send all 8K data in one single UDP
message, will there be errors like RPC_CANTSEND ?

If I modified the library such that large data is sent using several
sendto() call, will several UDP message generated for each sendto() call?
If so, will the various messages splited from of ONE UDP-RPC call mix with
other UDP-RPC call message (I think it is likely, am I rite?)?

Could anybody please shed some light on me, please? I am deperate to know!
Thanks a lot.

p/s: I cross-posted it to some other lists, if u see it more than once,
     please forgive me.

Regards.

- Beng Hang Tay (email: taybengh@nusdiscs.bitnet)
Technical Details
Message-ID: <1117@brchh104.bnr.ca>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!cunews!bnrgate!brtph3!brchh104!brchs1!bnr.ca!rice.edu!sun-spots-request

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!cunews!bnrgate!brtph3!brchh104!brchs1!bnr.ca!rice.edu!sun-spots-request
From: TAYBENGH@NUSDISCS.BITNET
Newsgroups: comp.sys.sun
Subject: can ONE single sendto() send all 8K data in Sun UDP-based RPC?
Keywords: Networks
Message-ID: <1117@brchh104.bnr.ca>
Date: 9 Jan 91 01:42:00 GMT
Sender: news@brchh104.bnr.ca
Organization: Sun-Spots
Lines: 23
Approved: Sun-Spots@rice.edu
X-Sun-Spots-Digest: Volume 10, Issue 4, message 7
X-Note: Submissions: sun-spots@rice.edu, Admin: sun-spots-request@rice.edu