ext_connect does NOT return a file descriptor, it
returns
0
on success and -1 on error. See
man
connect
on
your system.
So
this is NOT a bug, but an incorrect use of connect.
Best regards
Michael
Michael Tuexen Tel.: +49 89 722
47210 -----Original Message-----
From: gamja AT ssm.samsung.co.kr [mailto:gamja AT ssm.samsung.co.kr] Sent: Tuesday, June 18, 2002 9:57 AM To: discussion AT sctp.de Subject: [SCTP-Discussion] Bug in ext_select ? ext_select() does not function correctly with
socket descriptor which was returned by ext_connect().
ext_select() does not report any changes on
socket.
If socket descriptor was created by ext_accept(),
it runs well.
So, I am using ext_select() at server side
only.
1.
sockfd = ext_accept(.....)
ext_select(sockfd, .....)
// ext_select runs well at this
situation
2.
sockfd = ext_connect(.....)
ext_select(sockfd, .....)
// All changes on sockfd will not be
caught
// ext_select runs wrong.
|
Archive powered by MHonArc 2.6.19+.