🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: ServerSocket and Threads

#791
From: Patryk B.
Date: Wed, 12 Sep 2007 11:34
15 lines
1359 bytes
> You need to close the server. This then ensures the relevant TCP/IP  
> state packets are sent to any attached clients.
>
> ServerSocket->Close();
>

void __fastcall TMainForm::FormClose(TObject *Sender, TCloseAction &Action)
{
		ServerSocket->Close();
}

It dosent work, still when some client is connected it hang out,
I need to close client, then server is closing properly.

Patryk.
Technical Details
Message-ID: <op.tyjg3xr0wzezly@dune.intranet>
Path: arc1-ca.pugleaf.net!g2news2.google.com!news2.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <op.tyjavhtkwzezly@dune.intranet> <46e7c63b@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-7-bit
Date: Wed, 12 Sep 2007 13:34:35 +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> <46e7c63b@newsgroups.borland.com>
Content-Transfer-Encoding: 7bit
Message-ID: <op.tyjg3xr0wzezly@dune.intranet>
User-Agent: Opera Mail/9.23 (Win32)
NNTP-Posting-Host: 195.116.247.227
X-Trace: newsgroups.borland.com 1189596886 195.116.247.227 (12 Sep 2007 04:34:46 -0700)
Lines: 15
Path: arc1-ca.pugleaf.net!g2news2.google.com!news2.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail