Re: Problems with SO_REUSEADDR
- From: "Matthias Moetje [MVP]" <moetje@xxxxxxxxxxxxxxxxxxx>
- Date: Tue, 21 Mar 2006 16:43:25 +0100
Arkady,
thanks for the reply!
Matthias Moetje
-------------------------------------
TERASENS GmbH
Augustenstraße 24
80333 Munich, GERMANY
-------------------------------------
Fon: +49 89 143370-0
Fax: +49 89 143370-22
e-mail: moetje at terasens dot com
www: www.terasens.com
-------------------------------------
"Arkady Frenkel" <arkadyf@xxxxxxxxxxxxxxxx> wrote in message
news:%23YxftPNTGHA.5440@xxxxxxxxxxxxxxxxxxxxxxx
Masshias!you
Additionally , you succeed in setting
SO_REUSEADDR because/if you did it on different threads ( that fail if you
do it on the same thread,
because of design Terry wrote in details ) and I agree with Eugene that
don't need to use 2 sockets for read and write but the same oneprovider
Arkady
"Matthias Moetje [MVP]" <moetje@xxxxxxxxxxxxxxxxxxx> wrote in message
news:e%23xezlITGHA.5172@xxxxxxxxxxxxxxxxxxxxxxx
Eugene,
thanks very much for your reply?
Why would you do that? Sockets are full-duplex, you can both send and
receive on a signle one.
I know that. OK, here's the story: I am developing a TAPI service
stream.(TSP).
This is actually a dll that is loaded by the telephony service.
The TSP comes with an MSP (Media Service Provider). The MSP is COM based
and lives in the process of the client application. The TSP communicates
with the MSP
through TAPI messages. These are dispatched by the telephony service to
the
the TAPI client (TAPI3.dll) which loads the MSP into the client
application's process.
This design is by MS and there is nothing I can change about that.
Part of the MSP are two COM classes, a capture stream and a render
cannotI can send messages from my TSP to the capture and the render stream COM
object. These two objects don't know anything about each other and
Icommunicate. So the question is: Where should I create the socket?
I can't create it in the TSP because it lives in a different process and
sourcecan't create
it in only one of the stream objects because it can't be passed to the
other
one.
Thus, I ended up creating two sockets (which works fine unless the
port must be identical to the receiving port)
SO_REUSEADDR is intended to be used in totally different scenario.
Which one? I found only little information about it..
Best regards,
Matthias Moetje
-------------------------------------
TERASENS GmbH
Augustenstraße 24
80333 Munich, GERMANY
-------------------------------------
Fon: +49 89 143370-0
Fax: +49 89 143370-22
e-mail: moetje at terasens dot com
www: www.terasens.com
-------------------------------------
.
- References:
- Re: Problems with SO_REUSEADDR
- From: Eugene Gershnik
- Re: Problems with SO_REUSEADDR
- From: Matthias Moetje [MVP]
- Re: Problems with SO_REUSEADDR
- From: Arkady Frenkel
- Re: Problems with SO_REUSEADDR
- Prev by Date: Re: Problems with SO_REUSEADDR
- Next by Date: Re: Problems with winsock2 under VS 2005
- Previous by thread: Re: Problems with SO_REUSEADDR
- Next by thread: RE: Problems with SO_REUSEADDR
- Index(es):
Relevant Pages
|