when i write a application which create a ServerSocket listening the port 888 just as following,and i want the listening action is performed for ever.
ServerSocket soServer=null;
try
{
soServer = new ServerSocket(8888);
}
catch(IOException e)
{
System.out.println("Creating ServerSocket Error...");
System.out.println(e.toString());
}
Socket client=null;
while (true)
{
try
{
client = soServer.accept ();
}
catch(IOException e)
{}
SmsClient echo = new SmsClient(client);
//SmsClient extends
thread echo.start ();
}
but the next day, i find the application has stoped for some reason,can you help me and give me some clues ?