Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 2 Dec 2011 15:39:07 +0100
From:      =?iso-8859-1?Q?Michael_T=FCxen?= <Michael.Tuexen@lurchi.franken.de>
To:        jyl_2006 <yilinjing2006@gmail.com>
Cc:        freebsd-net@freebsd.org
Subject:   Re: the return value of sctp_connectx do not match any error
Message-ID:  <0D6FA7F2-1462-44EF-98F4-3B6AFC856757@lurchi.franken.de>
In-Reply-To: <1322834879026-5041952.post@n5.nabble.com>
References:  <1322834879026-5041952.post@n5.nabble.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Dec 2, 2011, at 3:07 PM, jyl_2006 wrote:

> Hi,=20
> I use FreeBSD 9.0 Beta2.
> When I use sctp_connectx to init a new association , the return value =
of
> this function is strange.
> The return value is not any of following:1.EINVAL, 2.E2BIG, 3.EBADOF,
> 4.ENOTSOCK.
Hi,

the return value should be 0 (for success) or -1 (in case of an error).
Only if -1 is returned, errno is set to an appropriate value.

Can you provide a small test program demonstrating the issue?

Best regards
Michael
>=20
> I use perror() function to see detail, it shows that " Resource =
temporarily
> unavailable".
>=20
> Thanks.
>=20
> --
> View this message in context: =
http://freebsd.1045724.n5.nabble.com/the-return-value-of-sctp-connectx-do-=
not-match-any-error-tp5041952p5041952.html
> Sent from the freebsd-net mailing list archive at Nabble.com.
> _______________________________________________
> freebsd-net@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-net
> To unsubscribe, send any mail to "freebsd-net-unsubscribe@freebsd.org"
>=20




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?0D6FA7F2-1462-44EF-98F4-3B6AFC856757>