how to close server socket without throwing an exception?
 
if i call close then it throws exception which gets caught in catch 1 not in catch 2
can anybody explain
 
ServerSocket ss = new ServerSocket(iPort);
 
try
{
    ss.accept();
}
catch(Exception e) /* 1 */
{
///
}
 
try
{
    ss.close();
}
catch(Exception e) /* 2 */
{
///
}
 
 
Ashish

Reply via email to