🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: ServerSocket and Threads

#794
From: Patryk B.
Date: Thu, 13 Sep 2007 07:30
28 lines
1678 bytes
Dnia 12-09-2007 o 19:14:54 Remy Lebeau (TeamB) <no.spam@no.spam.com>  
napisa�(a):

> Please show the actual code that you are using.  Your thread code is  
> likely
> not responding to disconnects properly.

For test im using code from http://dn.codegear.com/article/26276
As client im using telnet. It hang beacuse i delete:

if (pStream->WaitForData(CLIENTWAITTIME))

I want disconnect client only when server is going to shutdown.
In all I can set time for few hours and for my future use it will be ok  
but im
interesting how to do that.


> Gambit
>
>

Patryk.



-- 
U�ywam klienta poczty Opera Mail: http://www.opera.com/mail/
Technical Details
Message-ID: <op.tyk0galowzezly@dune.intranet>
Path: arc1-ca.pugleaf.net!g2news2.google.com!news3.google.com!news2.google.com!border1.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!newspeer1.nwr.nac.net!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail
References: <op.tyjavhtkwzezly@dune.intranet> <46e81ec5$3@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 11508e,f2f18bf54164452d
X-Google-Attributes: gid11508e,public,usenet
X-Google-Language: ENGLISH,ASCII
Date: Thu, 13 Sep 2007 09:30:00 +0200
Subject: Re: ServerSocket and Threads
Reply-To: pbobak@no.spam.o2.pl
From: "Patryk B." <pbobak@no.spam.o2.pl>
Content-Type: text/plain; format=flowed; delsp=yes; charset=iso-8859-2
MIME-Version: 1.0
Newsgroups: borland.public.cppbuilder.internet.socket
References: <op.tyjavhtkwzezly@dune.intranet> <46e81ec5$3@newsgroups.borland.com>
Content-Transfer-Encoding: 7bit
Message-ID: <op.tyk0galowzezly@dune.intranet>
User-Agent: Opera Mail/9.23 (Win32)
NNTP-Posting-Host: 195.116.247.227
X-Trace: newsgroups.borland.com 1189668608 195.116.247.227 (13 Sep 2007 00:30:08 -0700)
Lines: 28
Path: arc1-ca.pugleaf.net!g2news2.google.com!news3.google.com!news2.google.com!border1.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!newspeer1.nwr.nac.net!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail
X-Original-Bytes: 1518