Can anyone help me in solving the folloiwng queries in java socket. I need these 2 to be coded immediately.
1. Sample code to send heartbeat message from client to server.
2. How to make sure that client can receive any type of data from server? Here we are writing tcp client program, but don't know what type of it will receive from the server. So client must in a position to receive any type of data from server.