- From: amish.chana AT orange.co.uk
- To: discussion AT sctp.de
- Subject: [SCTP-Discussion] Inbound streams with socketapi
- Date: Wed Mar 12 13:27:01 2003
- List-id: SCTP Discussions <discussion.sctp.de>
Hi,
I have the following block of code with the socketapi.
Irrespective of the number of streams I assign the initmsg.sinit_max_instreams
below the INIT message always requests 1 stream.
Thank you in advance for any assistance,
Amish
------------------------------------------------------------
if ((fd = ext_socket(PF_INET, SOCK_SEQPACKET, IPPROTO_SCTP)) < 0)
perror("socket call failed");
if(ext_bind(fd, (struct sockaddr *)&src_addr, sizeof(src_addr)) < 0)
perror("bind call failed");
initmsg.sinit_num_ostreams = 5;
initmsg.sinit_max_instreams = 5;
initmsg.sinit_max_attempts = 0;
initmsg.sinit_max_init_timeo = 0;
if (ext_setsockopt(fd, IPPROTO_SCTP, SCTP_INITMSG, (void *)&initmsg,
sizeof(struct sctp_initmsg)) < 0)
perror("setsockopt call failed");
if(ext_connect(fd,(struct sockaddr *) &dest_addr,sizeof(dest_addr)) < 0)
perror("connect call failed");
*******************************************************************************
Important.
Confidentiality: This communication is intended for the above-named person and
may be confidential and/or legally privileged. Any opinions expressed in this
communication are not necessarily those of the company. If it has come to you
in error you must take no action based on it, nor must you copy or show it to
anyone; please delete/destroy and inform the sender immediately.
Monitoring/Viruses
Orange may monitor all incoming and outgoing emails in line with current
legislation. Although we have taken steps to ensure that this email and
attachments are free from any virus, we advise that in keeping with good
computing practice the recipient should ensure they are actually virus free.
Orange PCS Limited is a subsidiary of Orange SA and is registered in England
No
2178917, with its address at St James Court, Great Park Road, Almondsbury
Park,
Bradley Stoke, Bristol BS32 4QJ.
*******************************************************************************
- [SCTP-Discussion] Inbound streams with socketapi, amish . chana, 03/12/2003
Archive powered by MHonArc 2.6.19+.