🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Indy 9 and SysLog

#2577
From: Paul
Date: Sat, 11 Mar 2006 18:10
29 lines
1992 bytes
In the Help, the TIdSysLogMessage description has the following for 
SendToHost :

****
SendToHost is public procedure used to send the Syslog message to the host 
name or IP address indicated in Dest. SendToHost will create a temporary 
TIdUDPClient instance, when one has not already been assigned, to be used to 
for the transmission to the Syslog daemon in Dest. SendtoHost call 
TIdUDPClient.Send using Dest and IdPORT_syslog as the destintination for the 
contents of the message created using EncodeMessage.
****

What does "create a temporary TIdUDPClient instance, when one has not 
already been assigned" mean?  Did I achieve "assigning a TIdUDPClient 
instance" by doing the following in my code, even though there is no obvious 
link between these two?

Paul.

    TIdSysLog * c = new TIdSysLog(NULL);
    c->Host   = "127.0.0.1";
    c->ReceiveTimeout = 15000;
    c->Active = true;

    TIdSysLogMessage * t = new TIdSysLogMessage(NULL);
    t->Msg->Content = "Hi Server";
    t->Severity = slDebug;
    t->Facility = sfUserLevel;
    t->SendToHost("127.0.0.1");
Technical Details
Message-ID: <4413126f@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news4.google.com!news.glorb.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail
References: <4412d1f1$1@newsgroups.borland.com> <4413068d$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 11508e,ce70b488f13a23ed
X-Google-Attributes: gid11508e,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: "Paul" <plmacca@clara.co.uk>
Newsgroups: borland.public.cppbuilder.internet.socket
References: <4412d1f1$1@newsgroups.borland.com> <4413068d$1@newsgroups.borland.com>
Subject: Re: Indy 9 and SysLog
Date: Sat, 11 Mar 2006 18:10:01 -0000
Lines: 31
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.2180
X-RFC2646: Format=Flowed; Response
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180
NNTP-Posting-Host: 86.132.248.144
Message-ID: <4413126f@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1142100591 86.132.248.144 (11 Mar 2006 10:09:51 -0700)
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news4.google.com!news.glorb.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail