I have to write a program that needs to connect it to the main server first and then it should be able to send/receive messages to/from another clients directly and at the same time it should be able to receive messages from the main server too.
Anybody can help me with this? Any ideas? Its really urgent.