🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: TIdTCPServer Command Handler

#4754
From: Ronny
Date: Wed, 29 Dec 2004 19:38
20 lines
1469 bytes
"Ronny" <potapenko@check.com> wrote:
>
>Thank you for this quick response.
I had a second question, 
In the command handler for the LOGIN command, 
I'm doing this : 

client * newClient = new client(ASender->Thread, login)
clients.push_back(newClient); //clients is a vector <client *>;
ASender->Thread->Data=(TObject*) newClient;

The constructor of client copy some info like the peer IP and the pc hostname of the client. 

This stuff seems to cause some AV when the client disconnect. 
what is wrong in that ?

thx. 

Ron .
Technical Details
Message-ID: <41d307a3$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!proxad.net!213.200.89.82.MISMATCH!tiscali!newsfeed1.ip.tiscali.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <41d2f642$1@newsgroups.borland.com> <41d2ff3d$1@newsgroups.borland.com> <41d3044e$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 11508e,d17d5067aebc2759
X-Google-Attributes: gid11508e,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: "Ronny" <potapenko@check.com>
Sender: "Ronny" <potapenko@check.com>
Reply-To: "Ronny" <potapenko@check.com>
Subject: Re: TIdTCPServer Command Handler
Newsgroups: borland.public.cppbuilder.internet.socket
X-User-Info: 81.240.186.129     
References: <41d2f642$1@newsgroups.borland.com> <41d2ff3d$1@newsgroups.borland.com> <41d3044e$1@newsgroups.borland.com>
NNTP-Posting-Host: 207.105.83.66
Message-ID: <41d307a3$1@newsgroups.borland.com>
Date: 29 Dec 2004 11:38:11 -0800
X-Trace: newsgroups.borland.com 1104349091 207.105.83.66 (29 Dec 2004 11:38:11 -0800)
Lines: 21
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!proxad.net!213.200.89.82.MISMATCH!tiscali!newsfeed1.ip.tiscali.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail