Hello Everybody , Iam working in client-sever programming in tcp/ip.In that Program server should always have to open the connection.The client for some interval should open the connection and then it should be closed.when iam closing the socket in client side the server should know it and it should not send the data.when client opens the connection it should send data.This is the scenario when iam closing the connection the server also closes the connection.how to overcome this difficulty.how does the server knows that the client has closed the connection and how it can be opened and to wait to send data when the client opens the connection please help me regarding this regard suresh vaikuntam