Article View: borland.public.jbuilder.java.api
Article #2261Re: Stopping a thread in socket.accept()
From: Calvin R. Smith
Date: Fri, 13 Apr 2001 17:28
Date: Fri, 13 Apr 2001 17:28
21 lines
1712 bytes
1712 bytes
or you could just interupt the thread. Program flow will then resume where you catch the IntereuptedException "John McGrath [TeamB]" <ng-b@JPMcGrath.net> wrote in message news:MPG.154071da419159f798a117@forums.borland.com... > On Thu, 12 Apr 2001 23:51:55 +0300, Stefan Bouynov wrote: > > > I was just wondering if there is a secure way to stop/pause a > > thread, which is waiting for a socket connection > > If you close the socket, it should break out of the accept() call. > This is how I terminate a connection thread. > > -- > Regards, > > John McGrath [TeamB] > > --------------------------------------------------- > Before sending me e-mail, please read: > http://www.JPMcGrath.net/newsgroups/e-mail.html
Technical Details
Message-ID:
<3ad73798_2@dnews>Path:
arc1-ca.pugleaf.net!supernews.google.com!sn-xit-03!supernews.com!newsfeed.wirehub.nl!newspeer1.nac.net!colt.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!dnewsReferences:
<3ad61697$1_2@dnews> <MPG.154071da419159f798a117@forums.borland.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1089d0,2bfc89b161596ce6 X-Google-Attributes: gid1089d0,public X-Google-ArrivalTime: 2001-04-13 10:46:03 PST Reply-To: "Calvin R. Smith" <calvinrsmith@hotmail.com> From: "Calvin R. Smith" <calvinrsmith@hotmail.com> Newsgroups: borland.public.jbuilder.java.api References: <3ad61697$1_2@dnews> <MPG.154071da419159f798a117@forums.borland.com> Subject: Re: Stopping a thread in socket.accept() Date: Fri, 13 Apr 2001 11:28:27 -0600 Lines: 23 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.50.4133.2400 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400 NNTP-Posting-Host: 207.201.104.90 Message-ID: <3ad73798_2@dnews> X-Trace: dnews 987183000 207.201.104.90 (13 Apr 2001 10:30:00 -0700) Path: arc1-ca.pugleaf.net!supernews.google.com!sn-xit-03!supernews.com!newsfeed.wirehub.nl!newspeer1.nac.net!colt.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!dnews