ok, I'll go out on a limb and guess that you're trying for multi-threaded
access/shutdown here... where thread A creates the socket saves a reference
to it somewhere and then goes into accept and you're trying to shut it down
with another thread.
without putting some code to handle shutdown behi
. Lai" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Sunday, May 14, 2000 8:39 PM
Subject: Re: How to close ServerSocket
> "Ashish" <[EMAIL PROTECTED]> writes:
>
> > how to close server socket without throwing an exception?
> >
> > if i ca
"Ashish" <[EMAIL PROTECTED]> writes:
> 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
I tried it on JDK 1.1.7v3. First, I did not get any exception that
you got. Second, t
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.clos
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.c