Gaurav Wadhwani wrote:
So, does it mean that servers cant request and clients cant accept?
Well, that is how TCP works. Server sockets accept, and client socket initiate the connections. If you want something else,
Java also supports UDP, over either unicast or multicast.
Gaurav Wadhwani wrote:
If that is so, then how do i model my problem where there are 10 units which must communicate with each other. If i have to make a server and client for each unit that would be not efficient.
These are server sockets and client sockets -- not full blown server / client as defined in the application sense. Don't know what you mean by "not efficient" -- as that would imply that there is another way to do TCP.
Henry