SCTP Discussions

Text archives Help


[SCTP-Discussion] Re: Multithreading


Chronological Thread 
  • From: Michael Tüxen <Michael.Tuexen AT micmac.franken.de>
  • To: "Naveen.R.Ranga" <naveenreddy32 AT yahoo.com>
  • Cc: Thomas Dreibholz <dreibh AT exp-math.uni-essen.de>, Andreas Jungmaier <ajung AT exp-math.uni-essen.de>, discussion AT sctp.de
  • Subject: [SCTP-Discussion] Re: Multithreading
  • Date: Fri Jun 20 04:54:25 2003
  • List-id: SCTP Discussions <discussion.sctp.de>

Naveen,

so you are using the ext_sendmsg call and zou are using the
UDP-like, or better one2many, socketAPI. What does it mean,
that it does not work? ext_sendmsg returns an -1? What
is the output of an perror() call/

Best regards
Michael

On Thursday, Jun 19, 2003, at 18:44 Europe/Berlin, Naveen.R.Ranga wrote:

Hi,
I have looked into those examples. Well, the
TCP_COMBINED_SERVER runs different processes(on
different ports by creating threads).
In my application, I have to split an association
among several processes. Each process should be able
to send on different streams of the same association.
In the examples(TCP_COMBINED_SERVER), each thread
handles an association.so might have understood the
problem.
lets take an example. The client wants to have 4
files and sends a request to the server. Association
is set up. Now tthe server should spawn threads, such
that ON THE SAME ASSOCIATION, ALL THE THREADS NEED TO
SEND INFORMATION(here each file) ofcourse on DIFFERENT
STREAMS. So while spawning the threads, I see that the
threads were not able to send, so prob. that we need
to send association details, I am sending the
association ID and all others, still its not working.
Please let me know how to do this. Or else how do you
do MULTISTREAMING for the above said application.
Hope I explained the prob well. Waiting for the
solution. THanks.

Naveen
--- Michael_T�xen
<Michael.Tuexen AT micmac.franken.de>
wrote:
Hi Naveen,
the TCP_combined_server is an example how to use
multiple threads.

Please note, that the sctplib provides a call-back
API
and the socketapilib provides you with the socket
API.
You can NOT mix it.

Please look at the examples in the socketapilib
distribution,
not in the sctplib distribution.

Best regards
Michael



On Thursday, Jun 19, 2003, at 11:16 Europe/Berlin,
Naveen.R.Ranga wrote:

Hi all,
I am doing multithreading and was trying to
send data on different streams simultaneously
using
threads(each threads sends different data).
I don't know why I am getting the send
failure. I don't know how to pass information to
the
threads. I mean I am passing the same association
ID.
Is that enough or is it some thing else I need to
do
with "ext_accept"for the file descriptor. I am
doing
this on echo_server.c and I do not see any of the
basic calls(ext-socket,....) in this. Please guide
me
in having a multithreaded program. Thanks.

Naveen

=====
NAVEEN REDDY RANGA
600, South Webster Ave,#113
Norman,OK-73069.
Ph:(405)-329-5988
E-mail:
Personal:
rnaveenreddy AT hotmail.com
College:nranga AT ou.edu

__________________________________
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!
http://sbc.yahoo.com




=====
NAVEEN REDDY RANGA
600, South Webster Ave,#113
Norman,OK-73069.
Ph:(405)-329-5988
E-mail:
Personal:
rnaveenreddy AT hotmail.com
College:nranga AT ou.edu

__________________________________
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!
http://sbc.yahoo.com






Archive powered by MHonArc 2.6.19+.

Top of page