E
El Durango
Hello all,
I will try to explain my situation as clearly as possible. I am
creating a program that will act as an autonomous client which will receive
and send data to other autonomous clients (peer to peer), so that there is
decentralized communication. I was thinking of initially having a new client
sending a Multicast message to a unique address/port for the group and
giving the other clients its comm info (address/port) and then receiving
direct communication from each of the clients through UDP sockets. Now here
is my question, I am assuming that each of these clients will require a
unique port to communicate through?
I am using my computer as the testbed so all the clients will have the
address of localhost.
Now how am I suppose to find a unique port for each client?
Until now I have only down the traditional Client/Server
communication, where the server had a universal port everyone talked to!
If anyone can clear my confusion I would appreciate it.
I will try to explain my situation as clearly as possible. I am
creating a program that will act as an autonomous client which will receive
and send data to other autonomous clients (peer to peer), so that there is
decentralized communication. I was thinking of initially having a new client
sending a Multicast message to a unique address/port for the group and
giving the other clients its comm info (address/port) and then receiving
direct communication from each of the clients through UDP sockets. Now here
is my question, I am assuming that each of these clients will require a
unique port to communicate through?
I am using my computer as the testbed so all the clients will have the
address of localhost.
Now how am I suppose to find a unique port for each client?
Until now I have only down the traditional Client/Server
communication, where the server had a universal port everyone talked to!
If anyone can clear my confusion I would appreciate it.