SCTP Discussions

Text archives Help


Re: [SCTP-Discussion] How to determine whether message is on TCP or SCTP socket descriptor?


Chronological Thread 
  • From: Thomas Dreibholz <dreibh AT iem.uni-due.de>
  • To: rohit agrawal <agrawal_rohit1 AT yahoo.co.in>
  • Cc: sctp <discussion AT sctp.de>
  • Subject: Re: [SCTP-Discussion] How to determine whether message is on TCP or SCTP socket descriptor?
  • Date: Wed Apr 5 15:52:02 2006
  • List-id: SCTP Discussions <discussion.sctp.de>

On Wednesday 05 April 2006 14:01, rohit agrawal wrote:
> Hi ,
>
> I have a question? I want to have a server application which is listening
> on UDP ,TCP and SCTP port(one to one style socket). Now if a message has
> arrived on the server application how will it determine that message has
> come on which socket fd ? Using getsockopt function i could determine
> whether the message has come on UDP or TCP only. Also the ext_getsockopt
> function (present in socketapi-1.7.0)determines options only for SCTP.
>
> For TCP and SCTP (one to one style socket) the socket type is
> SOCK_STREAM.
>
> I would be thankful if there is some way to know on which fd message has
> arrived.

Use ext_poll() or ext_select(). I recommend ext_poll(), because poll is more
efficient. Read the manual pages for "poll" and "select" for details.


Best regards
--
=======================================================================
Dipl.-Inform. Thomas Dreibholz

University of Essen, Room ES210
Inst. for Experimental Mathematics Ellernstraße 29
Computer Networking Technology Group D-45326 Essen/Germany
-----------------------------------------------------------------------
E-Mail:
dreibh AT exp-math.uni-essen.de
Homepage: http://www.exp-math.uni-essen.de/~dreibh
=======================================================================

Attachment: pgpmEZNw8rLiO.pgp
Description: PGP signature




Archive powered by MHonArc 2.6.19+.

Top of page