Article View: borland.public.jbuilder.java.api
Article #2259Re: Stopping a thread in socket.accept()
From: John McGrath TeamB
Date: Fri, 13 Apr 2001 09:11
Date: Fri, 13 Apr 2001 09:11
16 lines
1289 bytes
1289 bytes
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:
<MPG.154071da419159f798a117@forums.borland.com>Path:
arc1-ca.pugleaf.net!supernews.google.com!sn-xit-03!supernews.com!logbridge.uoregon.edu!news.maxwell.syr.edu!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!dnewsReferences:
<3ad61697$1_2@dnews>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 02:18:04 PST From: John McGrath [TeamB] <ng-b@JPMcGrath.net> Newsgroups: borland.public.jbuilder.java.api Subject: Re: Stopping a thread in socket.accept() Date: Fri, 13 Apr 2001 05:11:11 -0400 Message-ID: <MPG.154071da419159f798a117@forums.borland.com> References: <3ad61697$1_2@dnews> X-Newsreader: MicroPlanet Gravity v2.30 NNTP-Posting-Host: 209.92.40.60 X-Trace: dnews 987153058 209.92.40.60 (13 Apr 2001 02:10:58 -0700) Lines: 16 X-Authenticated-User: jpmcgrath Path: arc1-ca.pugleaf.net!supernews.google.com!sn-xit-03!supernews.com!logbridge.uoregon.edu!news.maxwell.syr.edu!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!dnews