SCTP Discussions

Text archives Help


RE: [SCTP-Discussion] (no subject)


Chronological Thread 
  • From: Tuexen Michael <Michael.Tuexen AT icn.siemens.de>
  • To: "'discussion AT sctp.de'" <discussion AT sctp.de>
  • Cc: "'latha Sivalingam'" <lathasivalingam AT yahoo.com>
  • Subject: RE: [SCTP-Discussion] (no subject)
  • Date: Fri Jul 12 10:07:01 2002
  • List-id: SCTP Discussions <discussion.sctp.de>

Dear all,

the way it is done in the socketapi is that the
functions (like bind) use a pointer to the struct sockaddr
structure. If you want to use the bind call for
a IPv4 address you use a pointer to a struct sockaddr_in
and cast it, if you want to use a IPv6 address you
use a pointer to a struct sockaddr_in6 and cast it.

You may want to have a look in Stevens Network Programming
book.

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: latha Sivalingam
[mailto:lathasivalingam AT yahoo.com]
Sent: Friday, July 12, 2002 7:23 AM
To:
discussion AT sctp.de
Subject: [SCTP-Discussion] (no subject)


Hello All, Currently I am implementing UDP style API's for
SCTP. I got a very basic doubt, should we create seperate
API's for IPv4 and IPv6. Is there any mechanism, which can
accept both IPv4 and IPv6 addresses.




Get a bigger mailbox -- choose a size that fits your needs.

http://uk.docs.yahoo.com/mail_storage.html




Archive powered by MHonArc 2.6.19+.

Top of page