SCTP Discussions

Text archives Help


RE: [SCTP-Discussion] Bug in ext_select ?


Chronological Thread 
  • From: Tuexen Michael <Michael.Tuexen AT icn.siemens.de>
  • To: "'discussion AT sctp.de'" <discussion AT sctp.de>
  • Cc: "'???'" <gamja AT ssm.samsung.co.kr>
  • Subject: RE: [SCTP-Discussion] Bug in ext_select ?
  • Date: Tue Jun 18 12:07:00 2002
  • List-id: SCTP Discussions <discussion.sctp.de>

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
Siemens AG        Fax:    +49 89 722 48212
ICN WN CC SE 7    e-Mail: Michael.Tuexen AT icn.siemens.de
 

-----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+.

Top of page