SCTP Discussions

Text archives Help


Re: [SCTP-Discussion] What does ext_sendmsg() return??


Chronological Thread 
  • From: Andreas Jungmaier <ajung AT exp-math.uni-essen.de>
  • To: "Oon Heok Kee" <oonheokkee78 AT hotmail.com>, discussion AT sctp.de
  • Subject: Re: [SCTP-Discussion] What does ext_sendmsg() return??
  • Date: Wed Sep 4 18:17:02 2002
  • List-id: SCTP Discussions <discussion.sctp.de>
  • Organization: University of Essen

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

Hey, Oon Heok,

you MUST read (and understand) the socket-api draft to make
use of the socket API library (that spells: "READ ALL OF IT !").
That document can be found at
http://www.ietf.org/internet-drafts/draft-ietf-tsvwg-sctpsocket-04.txt

You might also want to have a look at a good book about
socket programming (I would recommend the excellent book from
W. Richard Stevens - "Unix Network Programming", and maybe also
Randy Stewart's book "Stream Control Transmission Protocol (SCTP)",
by R. Stewart, Qiaobing Xie, Mark C. Allman)

Then socket programming will make a whole lot more sense to you.

And: ext_sendmsg() returns an error, because you tried to send
something after the SCTP association had been terminated (i.e.:
the transport endpoint has shut down).

Andreas

On Wednesday 04 September 2002 08:00, Oon Heok Kee wrote:
> Hi,
>
> I would like to ask, what's the value that ext_sendmsg() return when
> it's
> called? If I didn't understand wrongly, it returns the number of bytes that
> it's sending, isn't it? Am I right to assume that if it returns a negative
> value, some error has occurred?
>
> I have attached my code as below, because at the portion where it
> calls
> ext_sendmsg(), it always returns an error saying "send() failed: Cannot
> send after transport endpoint shutdown".
>
> Is it because ext_sendmsg() is trying to send an empty user data
> buffer?
>
> Thank you!!
- --
- ---------------------------------------------------------------------------
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)

iD8DBQE9djFjXAsLBNOCSsARArwZAKCmLzB3k0CqFp9qJRBaezqBw6aJNwCdFMTT
Mk3v4kTjobDd4/iffTDdMCE=
=+fus
-----END PGP SIGNATURE-----





Archive powered by MHonArc 2.6.19+.

Top of page