SCTP Discussions

Text archives Help


Re: [SCTP-Discussion] (no subject)


Chronological Thread 
  • From: "elie" <elie AT flashmail.com>
  • To: IMEN <imenhedfi AT gmail.com>, sctp-discussion AT sctp.de
  • Subject: Re: [SCTP-Discussion] (no subject)
  • Date: Sun, 15 Jun 2008 21:51:12 +0800
  • List-archive: <http://lists.franken.de/pipermail/sctp-discussion>
  • List-id: SCTP Discussions <sctp-discussion.sctp.de>

I did somthing like this on windows, perhaps you find it
useful.
The lock is the same lock used on the master thread which is
handling events.
Eli.


sa_mainm->lock();

r = SCTP_send(vi->association,
0,
(unsigned char *)buf,
len,
SCTP_GENERIC_PAYLOAD_PROTOCOL_ID,
SCTP_USE_PRIMARY,
SCTP_NO_CONTEXT,
0xFFFFFFFF, // infinite
SCTP_ORDERED_DELIVERY,
SCTP_BUNDLING_DISABLED);


/* ensure send */
sctp_getEvents();

sa_mainm->unlock();








>hi,
>
>I try to use the sctp_send in a while loop
>this loop receive packets from udp and send them in sctp
>but the problem that the packets are sent after exitng from
>"dataArriveNotif " i want to send them as soon as they are
>received , i.e receive and send packet by packet,
>
>may i use sctp_send in other way to achieve this?
>
>
>best regards
>
>Imen
>_______________________________________________
>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