[ace-users] SCTP not working
Douglas C. Schmidt
schmidt at dre.vanderbilt.edu
Tue Jun 12 01:14:53 CDT 2007
Hi,
>I am using Opendiameter release 1.0.7-i for one of my projects. This
>version of opendiameter supports SCTP protocol using SCTP. When I am
>trying to use SCTP in both Linux and WIndows, it is not working. Below
>are the further required details.
Thanks for providing the version info.
>ACE VERSION : 5.5.1
Please upgrade to ACE+TAO+CIAO x.5.8 (i.e., ACE 5.5.8, TAO 1.5.8, and
CIAO 0.5.8), which you can download from
http://download.dre.vanderbilt.edu
under the heading: "Latest Beta Kit".
The DOC groups at Washington University, UC Irvine, and Vanderbilt
University only provide "best effort" support for non-sponsors for the
latest release, as described in
http://www.dre.vanderbilt.edu/~schmidt/DOC_ROOT/ACE/docs/ACE-bug-process.html
Thus, if you need more "predictable" help for earlier versions of
ACE+TAO, I recommend that you check out
http://www.dre.vanderbilt.edu/support.html
for a list of companies that will provide you with ACE+TAO commercial
support.
Thanks,
Doug
>OPERATING SYSTEM : Window XP and GNU Linux with kernel version
>2.6.16.16.
>Complier version : VC++ 6.0 in windows, GNU Linux "gcc version 3.2.3
>20030502"
>=20
>I wrote the below program to check whether there is problem with open
>diameter or ACE in opening SCTP sockets. The below didn't work in both
>Linux and Windows confirming that the problem is with ACE=20
>=20
>------------------------------------------------------------------------
>------------------------------------------------------------------------
>-----------------------------
> ACE_SOCK_SEQPACK_Acceptor AcceptorSocket;
>=20
> ACE_Multihomed_INET_Addr ServerAddr (TTCPPORT,
>#ifdef ACE_HAS_IPV6
> (0 ?
> ACE_IPV6_LOCALHOST :
> ACE_LOCALHOST)
>#else /* ! ACE_HAS_IPV6 */
> ACE_LOCALHOST
>#endif /* ! ACE_HAS_IPV6 */
> );
>=20
> if (-1 =3D=3D AcceptorSocket.open (ServerAddr,
> 1,
>#ifdef ACE_HAS_IPV6
> (0 ? AF_INET6 : AF_INET),
>#else /* ! ACE_HAS_IPV6 */
> AF_INET,
>#endif /* ! ACE_HAS_IPV6 */
> ACE_DEFAULT_BACKLOG
>#if defined (IPPROTO_SCTP)
> ,IPPROTO_SCTP
>#endif /* IPPROTO_SCTP */
> ))
> {
> printf( "cannot open the listening port\n");
> }
> else
> {
> printf( "opened the listening port\n");
> }
>=20
> return 0;
>=20
>------------------------------------------------------------------------
>------------------------------------------------------------------------
>-----------------------------
>=20
>Please let me know whether I need to use any other libraries along with
>ACE to use SCTP as transport protocol for any application.
>=20
>=20
>Thanks & Regards,
>Chandra Sekhar
>
>The information contained in this electronic message and any attachments
>to this message are intended for the exclusive use of the addressee(s)
>and may contain proprietary, confidential or privileged information. If
>you are not the intended recipient, you should not disseminate,
>distribute or copy this e-mail. Please notify the sender immediately and
>destroy all copies of this message and any attachments.=20
>
>WARNING: Computer viruses can be transmitted via email. The recipient
>should check this email and any attachments for the presence of viruses.
>The company accepts no liability for any damage caused by any virus
>transmitted by this email.
>
>www.wipro.com
>=09
>
>
>
>The information contained in this electronic message and any attachments to=
> this message are intended for the exclusive use of the addressee(s) and=
> may contain proprietary, confidential or privileged information. If you=
> are not the intended recipient, you should not disseminate, distribute or=
> copy this e-mail. Please notify the sender immediately and destroy all=
> copies of this message and any attachments.=20
>
>WARNING: Computer viruses can be transmitted via email. The recipient=
> should check this email and any attachments for the presence of viruses.=
> The company accepts no liability for any damage caused by any virus=
> transmitted by this email.
>=20
>www.wipro.com
>------_=_NextPart_001_01C7ACAD.12008715
>Content-Type: text/html;
> charset="us-ascii"
>Content-Transfer-Encoding: quoted-printable
>
><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
><HTML><HEAD>
><META http-equiv=3DContent-Type content=3D"text/html; charset=3Dus-ascii">
><META content=3D"MSHTML 6.00.2900.3059" name=3DGENERATOR></HEAD>
><BODY>
><DIV dir=3Dltr align=3Dleft><SPAN class=3D017543804-11062007><FONT face=
>=3DArial=20
>size=3D2>Hi,</FONT></SPAN></DIV>
><DIV><SPAN class=3D017543804-11062007><FONT face=3DArial=20
>size=3D2></FONT></SPAN> </DIV>
><DIV><SPAN class=3D017543804-11062007><FONT face=3DArial size=3D2>I am=20
>using Opendiameter release 1.0.7-i for one of my projects. This=
> version of=20
>opendiameter supports SCTP protocol using SCTP. When I am trying to use=
> SCTP in=20
>both Linux and WIndows, it is not working. Below are the further required=20
>details.</FONT></SPAN></DIV>
><DIV><SPAN class=3D017543804-11062007><FONT face=3DArial=20
>size=3D2></FONT></SPAN> </DIV>
><DIV><SPAN class=3D017543804-11062007><FONT face=3DArial size=3D2>ACE=
> VERSION :=20
>5.5.1</FONT></SPAN></DIV>
><DIV><SPAN class=3D017543804-11062007><FONT face=3DArial=20
>size=3D2></FONT></SPAN> </DIV>
><DIV><SPAN class=3D017543804-11062007><FONT face=3DArial size=3D2>OPERATING=
> SYSTEM :=20
>Window XP and GNU Linux with kernel version 2.6.16.16.</FONT></SPAN></DIV>
><DIV><SPAN class=3D017543804-11062007><FONT face=3DArial size=3D2>Complier=
> version :=20
>VC++ 6.0 in windows, GNU Linux "gcc version 3.2.3=
> 20030502"</FONT></SPAN></DIV>
><DIV><SPAN class=3D017543804-11062007><FONT face=3DArial=20
>size=3D2></FONT></SPAN> </DIV>
><DIV><SPAN class=3D017543804-11062007><FONT face=3DArial size=3D2>I wrote=
> the below=20
>program to check whether there is problem with open diameter or ACE in=
> opening=20
>SCTP sockets. The below didn't work in both Linux and Windows confirming=
> that=20
>the problem is with ACE </FONT></SPAN></DIV>
><DIV><SPAN class=3D017543804-11062007><FONT face=3DArial=20
>size=3D2></FONT></SPAN> </DIV>
><DIV><SPAN class=3D017543804-11062007><FONT face=3DArial=20
>size=
>=3D2>----------------------------------------------------------------------=
>---------------------------------------------------------------------------=
>----------------------------</FONT></SPAN></DIV>
><DIV><SPAN class=3D017543804-11062007><FONT face=3D"Book Antiqua" size=
>=3D2> =20
>ACE_SOCK_SEQPACK_Acceptor AcceptorSocket;</FONT></SPAN></DIV>
><DIV><FONT face=3D"Book Antiqua"></FONT> </DIV>
><DIV><SPAN class=3D017543804-11062007><FONT face=3D"Book Antiqua" size=
>=3D2> =20
>ACE_Multihomed_INET_Addr ServerAddr (TTCPPORT,<BR>#ifdef=20
>ACE_HAS_IPV6<BR>  =
>; &n=
>bsp;  =
>; =20
>(0=20
>?<BR> &nbs=
>p; &=
>nbsp; &nbs=
>p; =20
>ACE_IPV6_LOCALHOST=20
>:<BR> &nbs=
>p; &=
>nbsp; &nbs=
>p; =20
>ACE_LOCALHOST)<BR>#else /* ! ACE_HAS_IPV6=20
>*/<BR> &nb=
>sp; =
> &nb=
>sp; =20
>ACE_LOCALHOST<BR>#endif /* ! ACE_HAS_IPV6=20
>*/<BR> &nb=
>sp; =
> &nb=
>sp; =20
>);</FONT></SPAN></DIV>
><DIV><FONT face=3D"Book Antiqua"></FONT> </DIV>
><DIV><SPAN class=3D017543804-11062007><FONT face=3D"Book Antiqua" size=
>=3D2> if=20
>(-1 =3D=3D AcceptorSocket.open=20
>(ServerAddr,<BR>  =
>; &n=
>bsp; =20
>1,<BR>#ifdef=20
>ACE_HAS_IPV6<BR>  =
>; &n=
>bsp; =20
>(0 ? AF_INET6 : AF_INET),<BR>#else /* ! ACE_HAS_IPV6=20
>*/<BR> &nb=
>sp; =
> =20
>AF_INET,<BR>#endif /* ! ACE_HAS_IPV6=20
>*/<BR> &nb=
>sp; =
> =20
>ACE_DEFAULT_BACKLOG<BR>#if defined=20
>(IPPROTO_SCTP)<BR> &nb=
>sp; =
> =20
>,IPPROTO_SCTP<BR>#endif /* IPPROTO_SCTP=20
>*/<BR> &nb=
>sp; =
> =20
>))<BR> {<BR> printf( "cannot open the listening=20
>port\n");<BR> }<BR> else<BR> {<BR> printf(=
> "opened=20
>the listening port\n");<BR> }</FONT></SPAN></DIV>
><DIV><FONT face=3D"Book Antiqua"></FONT> </DIV>
><DIV><SPAN class=3D017543804-11062007><FONT face=3D"Book Antiqua" size=
>=3D2> =20
>return 0;</FONT></SPAN></DIV>
><DIV><SPAN class=3D017543804-11062007><FONT face=3D"Book Antiqua"=20
>size=3D2></FONT></SPAN> </DIV>
><DIV><SPAN class=3D017543804-11062007><SPAN class=
>=3D017543804-11062007><FONT=20
>face=3DArial=20
>size=
>=3D2>----------------------------------------------------------------------=
>---------------------------------------------------------------------------=
>----------------------------</FONT></SPAN></SPAN></DIV>
><DIV><SPAN class=3D017543804-11062007><SPAN class=
>=3D017543804-11062007><FONT=20
>face=3DArial size=3D2></FONT></SPAN></SPAN> </DIV>
><DIV><SPAN class=3D017543804-11062007><SPAN class=
>=3D017543804-11062007><FONT=20
>face=3DArial size=3D2>Please let me know whether I need to use any other=
> libraries=20
>along with ACE to use SCTP as transport protocol for any=20
>application.</FONT></SPAN></SPAN></DIV>
><DIV><SPAN class=3D017543804-11062007><SPAN class=
>=3D017543804-11062007><FONT=20
>face=3DArial size=3D2></FONT></SPAN></SPAN> </DIV>
><DIV><SPAN class=3D017543804-11062007><SPAN class=
>=3D017543804-11062007><FONT=20
>face=3DArial size=3D2></FONT></SPAN></SPAN> </DIV>
><DIV><SPAN class=3D017543804-11062007><SPAN class=
>=3D017543804-11062007><FONT=20
>face=3DArial size=3D2>Thanks & Regards,</FONT></SPAN></SPAN></DIV>
><DIV><SPAN class=3D017543804-11062007><SPAN class=
>=3D017543804-11062007><FONT=20
>face=3DArial size=3D2>Chandra Sekhar</FONT></SPAN></SPAN></DIV>
><TABLE>
> <TBODY>
> <TR>
> <TD bgColor=3D#ffffff><FONT color=3D#000000><BR>The information=
> contained in=20
> this electronic message and any attachments to this message are=
> intended=20
> for the exclusive use of the addressee(s) and may contain=
> proprietary,=20
> confidential or privileged information. If you are not the intended=20
> recipient, you should not disseminate, distribute or copy this=
> e-mail.=20
> Please notify the sender immediately and destroy all copies of this=20
> message and any attachments. <BR><BR>WARNING: Computer viruses can be=
>=20
> transmitted via email. The recipient should check this email and any=
>=20
> attachments for the presence of viruses. The company accepts no=
> liability=20
> for any damage caused by any virus transmitted by this=20
> =
> email.<BR><BR>www.wipro.com<BR></FONT></TD></TR></TBODY></TABLE></BODY></H=
>TML>
>
><table><tr><td bgcolor=3D#ffffff><font color=3D#000000><br>
>The information contained in this electronic message and any attachments to=
> this message are intended for the exclusive use of the addressee(s) and=
> may contain proprietary, confidential or privileged information. If you=
> are not the intended recipient, you should not disseminate, distribute or=
> copy this e-mail. Please notify the sender immediately and destroy all=
> copies of this message and any attachments. <br>
><br>
>WARNING: Computer viruses can be transmitted via email. The recipient=
> should check this email and any attachments for the presence of viruses.=
> The company accepts no liability for any damage caused by any virus=
> transmitted by this email.<br>
> <br>
>www.wipro.com<br>
></font></td></tr></table>
>------_=_NextPart_001_01C7ACAD.12008715--
>
--
Dr. Douglas C. Schmidt Professor and Associate Chair
Electrical Engineering and Computer Science TEL: (615) 343-8197
Vanderbilt University WEB: www.dre.vanderbilt.edu/~schmidt
Nashville, TN 37203 NET: d.schmidt at vanderbilt.edu
More information about the Ace-users
mailing list