🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Threads and Indy v9 NNTP->GetBody

#5825
From: anthony
Date: Sat, 31 May 2003 16:08
33 lines
2070 bytes
Think I've sorted it,
changed
    MyNNTP = new TIdNNTP;
to
    MyNNTP = new TIdNNTP(NULL);

and it works.


"anthony" <anthony@nospam.com> wrote in message
news:3ed8bf6a$1@newsgroups.borland.com...
> Yes I know about the limit of simultaneous connections. The server I want
to
> use accepts at least 4 connections.
>
> Each connection is going to have its own thread, which will create its own
> NNTP Client (TIdNNTP).
> When I use MyNNTP = new TIdNNTP;  in the Execute function of TThread and
> compile the project I get the error message,
>
> [C++ Error] threads1.cpp(57): E2285 Could not find a match for
> 'TIdNNTP::TIdNNTP()'.
>
> I have  TIdNNTP *MyNNTP;    in the private section of the TThread class.
>
> Where am I going wrong?
>
> The application is going to end up as console app so I don't want to start
> dragging NNTP clients onto a form.
>
> Thanks
> Anthony
>
Technical Details
Message-ID: <3ed8d3de$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-09!supernews.com!newsfeed.wirehub.nl!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mail
References: <3ed3f293$1@newsgroups.borland.com> <3ed3fd3c$1@newsgroups.borland.com> <Xns9389E13BF9B11cpub@127.0.0.1> <3ed500b4$1@newsgroups.borland.com> <3ed8bf6a$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 1036eb,d0af1d6930cf27c2
X-Google-Attributes: gid1036eb,public
X-Google-Thread: 11508e,d0af1d6930cf27c2
X-Google-Attributes: gid11508e,public
X-Google-ArrivalTime: 2003-05-31 09:16:22 PST
From: "anthony" <anthony@nospam.com>
Newsgroups: borland.public.cppbuilder.internet.socket,borland.public.delphi.internet.winsock
References: <3ed3f293$1@newsgroups.borland.com> <3ed3fd3c$1@newsgroups.borland.com> <Xns9389E13BF9B11cpub@127.0.0.1> <3ed500b4$1@newsgroups.borland.com> <3ed8bf6a$1@newsgroups.borland.com>
Subject: Re: Threads and Indy v9 NNTP->GetBody
Date: Sat, 31 May 2003 17:08:59 +0100
Lines: 35
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1106
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106
NNTP-Posting-Host: 80.4.211.205
Message-ID: <3ed8d3de$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1054397406 80.4.211.205 (31 May 2003 09:10:06 -0700)
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-09!supernews.com!newsfeed.wirehub.nl!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mail