🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Important - Need help testing new Indy version and fast!

#896
From: Paul at NCF
Date: Sat, 18 Aug 2007 15:15
105 lines
4821 bytes
Hi,

I've downloaded the latest Indy10, and now I am getting a bit further.

1)  I've rebuilt my Syslog server and client test harness (after updating 
the project files).  Observations so far:

a)  I had to remove include lines for AntiFreeze headers, as the linker was 
reporting it couldn't find AntiFreeze.obj.  Once these were commented out, 
it linked successfully.

b)  The server and client test harnesses are working (including receiving 
SysLog data from my wireless ADSL router), however I notice a difference in 
behaviour for two different send calls.  In Indy9 the hostname is an IP 
address, with Indy10 it is either blank or the PC name (the test was done 
using local loop on the same machine):

With SysLog Client rebuilt only (and using Indy9 Server) the data received 
is:

Indy9 SysLog Client Output:
    2007-08-18,15:09:05:0000,192.168.1.109,127.0.0.1,4099,SysLogClient,23,Debug,Mail,Test 
Message
    2007-08-18,15:09:05:0000,192.168.1.109,127.0.0.1,4097,SysLogClient,23,Debug,Mail,Test 
Message

Indy 10 SysLog Client Output:
    2007-08-18,15:15:40:0000,,127.0.0.1,4099,SysLogClient,23,Debug,Mail,Test 
Message
    2007-08-18,15:15:40:0000,MAINPC2,127.0.0.1,4097,SysLogClient,23,Debug,Mail,Test 
Message

With the SysLog Server Application rebuilt (and my Service version) the 
output is as follows; so this is defintely a difference in the client 
component.

    2007-08-18,15:26:50:0000,,127.0.0.1,4099,SysLogClient,23,Debug,Mail,Test 
Message
    2007-08-18,15:26:50:0000,MAINPC2,127.0.0.1,4097,SysLogClient,23,Debug,Mail,Test 
Message

This send leaves the host name blank:
        IdSysLog->SendLogMessage( sl, false );
    When sl is created like this:
        TIdSysLogMessage * sl = new TIdSysLogMessage(NULL);
        sl->Msg->Process = ProcessName;
        sl->Msg->PIDAvailable = true;
        sl->Msg->PID     = ProcessID;
        sl->TimeStamp    = Now();
        sl->Msg->Content = message;
        sl->Severity     = severity;
        sl->Facility     = facility;

This send fills in the PC name:
            IdSysLog->SendLogMessage( In_ProcessName, In_Message, 
GetFacility(In_Facility), GetSeverity(In_Severity), true, In_ProcessID );


2)  UDP Client & Server Components, I get the following compile errors. 
Have all these interfaces changed?

------------------------
IdUDPServer->OnUDPRead = IdUDPServerUDPRead;

[C++ Error] CUDPServerTask.Cpp(56): E2034 Cannot convert 'void (_fastcall * 
(_closure )(TObject *,TStream *,TIdSocketHandle *))(TObject *,TStream 
*,TIdSocketHandle *)' to 'void (_fastcall * (_closure )(TIdUDPListenerThread 
*,TByteDynArray,TIdSocketHandle *))(TIdUDPListenerThread 
*,TByteDynArray,TIdSocketHandle *)'
------------------------
IdUDPServer->SendBuffer(ABinding->PeerIP, ABinding->PeerPort, 
IdUDPServer->TxBuf->Udata,TxBuf->Ulength );

[C++ Error] CUDPServerTask.Cpp(258): E2285 Could not find a match for 
'TIdUDPBase::SendBuffer(AnsiString,unsigned short,unsigned char *,unsigned 
long)'
------------------------
IdUDPClient->SendBuffer( Udata, Ulength );

[C++ Error] CUDPClientTask.cpp(258): E2285 Could not find a match for 
'TIdUDPClient::SendBuffer(unsigned char *,unsigned long)'
------------------------
RxBuf->Ulength = IdUDPClient->ReceiveBuffer( Data, DataSize, Wait );

[C++ Error] CUDPClientTask.cpp(278): E2285 Could not find a match for 
'TIdUDPClient::ReceiveBuffer(unsigned char *,unsigned long,unsigned long)'
------------------------

I think thats it.

Regards,

Paul



"Paul at NCF" <notplmacca@clara.co.uk> wrote in message
news:46bec059$1@newsgroups.borland.com...
> Hi,
>
> I don't use many components, but I'll try to install it on BCB6 and test
> the components I do use.
>
> Paul
> 
Technical Details
Message-ID: <46c70d07$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news2.google.com!news2.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!nx01.iad01.newshosting.com!newshosting.com!203.109.252.33.MISMATCH!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail
References: <46bd01a2$1@newsgroups.borland.com> <46bec059$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 11508e,e3c7f9e2088e8b5
X-Google-Attributes: gid11508e,public,usenet
X-Google-Language: ENGLISH,ASCII-7-bit
From: "Paul at NCF" <notplmacca@clara.co.uk>
Newsgroups: borland.public.cppbuilder.internet.socket
References: <46bd01a2$1@newsgroups.borland.com> <46bec059$1@newsgroups.borland.com>
Subject: Re: Important - Need help testing new Indy version and fast!
Date: Sat, 18 Aug 2007 16:15:17 +0100
Lines: 107
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.3138
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3138
X-RFC2646: Format=Flowed; Original
NNTP-Posting-Host: 86.139.30.107
Message-ID: <46c70d07$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1187450119 86.139.30.107 (18 Aug 2007 08:15:19 -0700)
Path: arc1-ca.pugleaf.net!g2news2.google.com!news2.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!nx01.iad01.newshosting.com!newshosting.com!203.109.252.33.MISMATCH!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail