|
|
Harsimrat Thukral wrote:
There would be total 6 computers in the Network....
1) We have a topology which have information of the IP addresses and which
computer gets connected to which, something along these lines.....
Node1IpAddress Node2IpAddress Capacity
192.168.107.156 192.168.107.248 10
192.168.107.248 192.168.107.35 20
192.168.107.35 192.168.107.64 15
192.168.107.64 192.168.107.88 20
192.168.107.88 192.168.107.117 10
192.168.107.117 192.168.107.156 30
192.168.107.117 192.168.107.64 25
192.168.107.248 192.168.107.117 18
192.168.107.35 192.168.107.88 10
192.168.107.35 192.168.107.156 20
192.168.107.35 192.168.107.117 30
Basically these are the real IP addresses of the the computers........
Suppose I bring up the application on 192.168.107.156---- it is supplied
with the Topology above ..... Now this guy knows he is connected to
192.168.107.248, he checks that if that program is up, if yes try to pass
the topology to that guy, if down keep checking his neighbours and as soon
as they come up pass the Topology. Now topology is passed 192.168.107.48, it
will start checking its neighbours and pass so on, once the complete network
is up all Nodes should be synchronised with the same information...........
But, as I see it, if any of the computers is down, rest of neighbours
won't ever receive data...... I thought they were connected in a network
with star topology....., even I see some duplicated IP's in the list
above, does it mean some computers may be connected to more than one
peer at a time? Why don't you store a list of all valid IP's in each
computer and perform a difussion of the information you want from a
computer (some kind of master of your network)? In your protocol you
should decide which computer is the first master, and how they manage to
choose a new one if the master fails, but I know there are algorithms
like that already made (token-passing?).
I hope this will help you....
Now I do some computations on 192.168.107.156, the original topology is
changed so I want that that new Topology is passed on the Network through
the above mentioned way and all the nodes are synchronised again, some Hello
Packet kind of thing is sent maybe every 30 secs.........
Please suggest what is the best way to do it. I m using QT to do everything
so wanted to use QSockets to do this part also..........
I see no problem in using QSockets to achieve what you want to do, I
think you'd first be sure that your protocol will work......
Regards,
Juan.
Thank You
Harsimrat
"Juan Rosell" <jarosell@xxxxxxxxxxxxx> wrote in message
news:423FD736.7050309@xxxxxxxxxxxxxxxx
I think what you're looking for , is a protocol which does not depend
whether you use QSocket or not. We maybe should know something more about
your network. Do all computers know which is the number of computers
connected to the network? Or is it a dynamic network where computers can
connect or disconnect as they will?
As you explained it, it looks like a token passing network but maybe you
should give more information about the type of messages you'll use and so
on....
Regards,
Juan.
Harsimrat Thukral wrote:
Dear Developers
I'm working on a project which used QT and finished 60% with all your guys
support and help. I started with zero knowledge in QT, still a beginner
though....
I have a program, which will be put on 6 computers. There is no server and
all the clients will act as server and client......
Suppose If I open the program and pass some files to that program....I
want all 5 other computers should be able to fetch that file from the
first one.......
If first one goes down, some machine maybe second computer starts acting
as the main hub and all the information is updated on all the machine at
regular intervals.....maybe every 30 seconds all 6 machines get
synchronised......if I bring 5 machines down......and one will perform
certain actions and as soon as some other comes up it should pass the
information.......
What is the best way to do it using QSockets........Little bit piece of
code will be good.....
Thank You
Harsimrat
--
List archive and information: http://lists.trolltech.com/qt-interest/
--
List archive and information: http://lists.trolltech.com/qt-interest/
--
List archive and information: http://lists.trolltech.com/qt-interest/
|
|