SCTP Discussions

Text archives Help


Re: [SCTP-Discussion] rejecting datagrams


Chronological Thread 
  • From: Andreas Jungmaier <ajung AT exp-math.uni-essen.de>
  • To: Stefan Jansen <jansen AT szs.uni-karlsruhe.de>, discussion AT sctp.de
  • Subject: Re: [SCTP-Discussion] rejecting datagrams
  • Date: Thu Nov 21 15:12:00 2002
  • List-id: SCTP Discussions <discussion.sctp.de>
  • Organization: University of Essen

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Stefan, dear all,

the message handlich API is currently not very sophisticated.
There is no way to do something like this very elegantly at
the time.

What you can do, however, is call sctp_receive() several times
with a small buffer (one that your program can handle), and
just not use this data.

This will read successive parts of the message (similar to a
partial delivery) and when you have read the last part of
the message, the next sctp_receive() call will give you
data from the next message.

Please note that it does not currently make sense to send a
"very large data message", i.e. one 2GB file, as one "SCTP message".

This could be attempted with the current implementation, but may
easily *block* after a full receiver window of data has been send,
but the full message was not assembled by the receiver
(who cannot have freed the receiver buffer space, unless a *true*
partial delivery API were implemented).

Regards,
Andreas


On Thursday 21 November 2002 11:50, Stefan Jansen wrote:
> Hi,
>
> how can I handle datagrams that are too large for my program?
>
> If I get a dataArriveNotif and do not want to receive the message because
> it is too big, how can I skip it?
>
> Regards
> Stefan Jansen

- --
- ---------------------------------------------------------------------------
Dipl.-Ing. Andreas Jungmaier | Stop sending E-POSTCARDS !
Computer Networking Technology Group | Send E-MAILS -- Use PGP !
University of Essen |
http://www.exp-math.uni-essen.de/~ajung | http://www.gnupg.org
My PGP Key-ID: D3824AC0 | http://wwwkeys.pgp.net
- ---------------------------------------------------------------------------
My PGP Key-Fingerprint: 228C 7C2C 3381 2DD4 9998 2812 5C0B 0B04 D382 4AC0
- ---------------------------------------------------------------------------

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.7 (GNU/Linux)

iD8DBQE93lYHXAsLBNOCSsARAu9mAJ9JJOtBHWua6p3OqM+mwulh5bbiUACZAWPb
4ZamW4d3trF90daA18Gyeh8=
=mw6h
-----END PGP SIGNATURE-----





Archive powered by MHonArc 2.6.19+.

Top of page