Re: How to close ServerSocket

2000-05-14 Thread Chris Abbey
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

Re: How to close ServerSocket

2000-05-14 Thread Ashish
. 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

Re: How to close ServerSocket

2000-05-14 Thread Albert Y. C. Lai
"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 ServerSocket

2000-05-13 Thread Ashish
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 ServerSocket

2000-05-13 Thread Ashish
  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