- From: Andreas Jungmaier <ajung AT exp-math.uni-essen.de>
- To: discussion AT sctp.de
- Subject: Re: [SCTP-Discussion] Using sctp_setPrimary(...)
- Date: Fri Aug 24 11:16:01 2001
- List-id: SCTP Discussions <discussion.sctp.de>
- Organization: University of Essen, Germany
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Sebastien,
>
when I call sctp_registerInstance(...);, the localAddressList is:
>
unsigned char localAddressList[2][46];
>
>
strcpy ((char*) localAddressList[0], "172.16.1.212"); //my two
>
client
>
strcpy ((char*) localAddressList[1], "172.16.1.213"); //IP address
What arguments are passed to the function sctp_registerInstance(...);,
and what is th result of that function ?
Do you call sctp_setPrimary(assocId,1) before you get
an association up ?
If not, what is the value of your assocId ?
>
when I call sctp_setPrimary(assocId, 1); //to choise IP address
>
172.16.1.213 return value is 1 (an error!!!)
>
The funtion can only be used after you have an established
association (if not you cannot know the number of addresses
your peer has, and only then does it make sense to set a
primary address) !
Regards,
Andreas
- --
- ------------------------------------------------------------------------
Dipl.-Ing. Andreas Jungmaier | _
Computer Networking Technology Group | ASCII ribbon campaign ( )
University of Essen | - against HTML email X
http://www.exp-math.uni-essen.de/~ajung | & vcards / \
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.5 (GNU/Linux)
Comment: For info see
http://www.gnupg.org
iD4DBQE7hjdsd2Uw+xBvGUIRAnvzAKCqqTIB3T4G0eEuNc29PDpqUxMVagCUDfw5
8qC9DUXyc8gVJhoJtJkVjg==
=CHxU
-----END PGP SIGNATURE-----
Archive powered by MHonArc 2.6.19+.