🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.internet.socket
Article #4260

Re: breaking blocking socket

#4260
From: mr_organic
Date: Fri, 11 Mar 2005 13:51
14 lines
1225 bytes
"Adam" <wadi@poczta.onet.pl> wrote in
news:4231568b@newsgroups.borland.com: 

> Is it possible to break blocking socket ?
> For instance: while using socket in thread - function: recvfrom(),  I
> will close this socket from main thread. Is it possible ?
> thanks
> 

The "clean" way to do it is to set a timeout value on the socket. The less-
clean way is to terminate the thread in which you launched the blocking 
thread (you did launch it in it's own thread, right?).

mr_organic
Technical Details
Message-ID: <4231a254$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news.glorb.com!news.linkpendium.com!news.linkpendium.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail
References: <4231568b@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 11508e,a69a85a7f710f262
X-Google-Attributes: gid11508e,public
X-Google-Language: ENGLISH,ASCII-7-bit
Newsgroups: borland.public.cppbuilder.internet.socket
Subject: Re: breaking blocking socket
From: "mr_organic" <mr_organic@yourmamashouse.com>
References: <4231568b@newsgroups.borland.com>
User-Agent: Xnews/5.04.25
NNTP-Posting-Host: 129.176.197.15
Message-ID: <4231a254$1@newsgroups.borland.com>
Date: 11 Mar 2005 05:51:16 -0800
X-Trace: newsgroups.borland.com 1110549076 129.176.197.15 (11 Mar 2005 05:51:16 -0800)
Lines: 14
Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news.glorb.com!news.linkpendium.com!news.linkpendium.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail