🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

[Indy 9.018 / CBuilder6] IdTCPServer Connection always NULL

#4580
From: Zoetjuh
Date: Fri, 14 Jan 2005 18:28
18 lines
1494 bytes
I'm trying to use the Indy 9.018 component TIdTCPServer.
As the most simple test, I've created a new application, set the default port to 
9980 and set the following OnExecute code:

void __fastcall TForm1::IdTCPServer1Execute(TIdPeerThread *AThread)
{
ShowMessage( AThread->Connection->ReadLnWait(100) );
}


However, nomatter what I try, The "Connection" is always NULL. I'm probebly 
forgetting somethine very simple, but I don't seem to be able to come up with 
that..

Any help would be very much appriciated.


Zoetjuh / Peter Elbertse 
Technical Details
Message-ID: <41e80f47@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!news.maxwell.syr.edu!newshosting.com!nx02.iad01.newshosting.com!news-peer0-test!news-peer-test!btnet!newsfeed.bt.es!caladan.landsraad.net!newsgroups.borland.com!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Thread: 11508e,8d17184a33491515,start
X-Google-Attributes: gid11508e,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: "Zoetjuh" <peter@i-hate-spam.zoetjuh.demon.nl>
Newsgroups: borland.public.cppbuilder.internet.socket
Subject: [Indy 9.018 / CBuilder6] IdTCPServer Connection always NULL
Date: Fri, 14 Jan 2005 19:28:24 +0100
Lines: 20
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.2527
X-RFC2646: Format=Flowed; Original
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2527
NNTP-Posting-Host: 82.161.4.111
Message-ID: <41e80f47@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1105727303 82.161.4.111 (14 Jan 2005 10:28:23 -0800)
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!news.maxwell.syr.edu!newshosting.com!nx02.iad01.newshosting.com!news-peer0-test!news-peer-test!btnet!newsfeed.bt.es!caladan.landsraad.net!newsgroups.borland.com!not-for-mail