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,using
I am doing multithreading and was trying to
send data on different streams simultaneously
threads(each threads sends different data).the
I don't know why I am getting the send
failure. I don't know how to pass information to
threads. I mean I am passing the same associationID.
Is that enough or is it some thing else I need todo
with "ext_accept"for the file descriptor. I amdoing
this on echo_server.c and I do not see any of theme
basic calls(ext-socket,....) in this. Please guide
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+.