Hi DaniWeb,
I'm currently writing a client server program.
I have my client and server sending data and everything fine.
But I'm trying to get my client to reconnect.
E.g if I get the server to kill the clients connection how can I get the client to realise it is no longer connected and then reconnect.
I've tried using the command socket.connect() but it is asking for a SocketAddress.
I've looked on SUN's website and there is nothing about SocketAddress just that it is a class.
public boolean ConnectToServer() throws Exception
{
if(!Globals.socket10123.isConnected())
{
Globals.socket10123.connect ("192.168.0.23:10123");
}
if(Globals.socket10123.isConnected())
{
return true;
}
return false;
}