SCTP Discussions

Text archives Help


Re: [SCTP-Discussion] one-to-many socket bug in solaris 10


Chronological Thread 
  • From: Michael Tuexen <Michael.Tuexen AT micmac.franken.de>
  • To: 陈飞 <feiyang21687 AT gmail.com>
  • Cc: sctp-discussion AT sctp.de
  • Subject: Re: [SCTP-Discussion] one-to-many socket bug in solaris 10
  • Date: Fri, 25 Apr 2008 13:39:36 +0200
  • List-archive: <http://lists.franken.de/pipermail/sctp-discussion>
  • List-id: SCTP Discussions <sctp-discussion.sctp.de>

Hi Feiyang,

what about using

int sctp_send(int sd,
const void *msg,
size_t len,
const struct sctp_sndrcvinfo *sinfo,
int flags);

and provide the assoc_id in

struct sctp_sndrcvinfo {
uint16_t sinfo_stream;
uint16_t sinfo_ssn;
uint16_t sinfo_flags;
uint16_t sinfo_pr_policy;
uint32_t sinfo_ppid;
uint32_t sinfo_context;
uint32_t sinfo_pr_value;
uint32_t sinfo_tsn;
uint32_t sinfo_cumtsn;
sctp_assoc_t sinfo_assoc_id;
};

Sorry for not being clear...

Best regards
Michael

On Apr 25, 2008, at 1:25 PM, 陈飞 wrote:

HI Michael.
the sctp_sendmsg's prototype is:
ssize_t sctp_sendmsg(int sd,
const void *msg,
size_t len,
const struct sockaddr *to,

socklen_t tolen,
uint32_t ppid,
uint32_t flags,
uint16_t stream_no,
uint32_t pr_value,

uint32_t context);
how can i provide association ID in it? I just learn about the sctp_sendmsg may be a wrapper of sendmsg.
do you mean change the source code of sctp_sendmsg?



2008/4/25 Michael Tuexen
<Michael.Tuexen AT micmac.franken.de>:
Hi Feiyang,

this is a known bug^H^H^Hfeature of the Solaris SCTP implementation. You have to provide
the association ID in the sctp_sendmsg() call.

Best regards
Michael


On Apr 25, 2008, at 6:44 AM, 陈飞 wrote:

hi guys.
i have a problem in solaris 10. I create a one-to-many sctp socket and call sctp_sendmsg to server. the server return from sctp_recvmsg, and send back the message. when the server send back message, i encounter a error:Address already in used.
i think this may be a bug. do you think so?

feiyang
2008-04-25
_______________________________________________
sctp-discussion mailing list
sctp-discussion AT sctp.de
http://www.sctp.de/mailman/listinfo/sctp-discussion







Archive powered by MHonArc 2.6.19+.

Top of page