[twsocket] Error Message when using TSmtpCli

2014-01-04 Thread Florian Hector
Hi All,

I just started using ICS TSmtpCli for sending mails (still working with D7).
Upon terminating my application, it reported some memory leak whenever the 
function of sending mails
had been used.

So before anything else, I upgraded the ISC package to the latest release. Ever 
since, I get an
error message along the lines "SmtpCli1.ProxyType: Property ProxyType does not 
exist".

When I try to compile the sample application OverbyteICSMailSnd, the compiler 
barks at a line where
a variable of the type TSmtpProxyType is declared.

Any help on this would be greatly appreciated.

Florian
-- 
To unsubscribe or change your settings for TWSocket mailing list
please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be


Re: [twsocket] Error Message when using TSmtpCli

2014-01-05 Thread Florian Hector
> 
> Then likely an old version of ICS is found. Make sure that the library path ( 
> Tools | EnvironmentOptions ) does include either the path to the output 
> directory that contains the right dcu files, this is by default 
> \Lib\Debug\Win32\D7 *or* both the path to \Source and 
> \Source\Include. At the same time remove any library path that 
> points to an old ICS directory.  

Shame on me, that was it.
After removing old *.dcu files, the problem was gone.

> 
>>
>> When I try to compile the sample application OverbyteICSMailSnd, the
>> compiler barks at a line where a variable of the type TSmtpProxyType
>> is declared. 
> 
> I just did a fresh checkout of the latest SVN revision ( 
> http://wiki.overbyte.be/wiki/index.php/ICS_Download ) and installed on Delphi 
> 7. Cannot reproduce this issue.
> 

After the above, the sample app compiles w/o a problem.

Thanks a bunch

Florian

-- 
To unsubscribe or change your settings for TWSocket mailing list
please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be


[twsocket] Nagios like communication

2014-06-09 Thread Florian Hector
Hi,

I would like to implement a new feature into one of my applications where I can 
ask for a status
through a (VPN)network connection, kind of like Nagios does. Or maybe even 
build functionality into
it so that it can be queried by Nagios.

Which methods/components should I go with?

Florian
-- 
To unsubscribe or change your settings for TWSocket mailing list
please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be


Re: [twsocket] Nagios like communication

2014-06-09 Thread Florian Hector
Angus,

Sorry, I should have explained better the first time.
My application collects data from industrial PLC's via OPC, it is running on 
quite a number of
clients which I cannot constantly check manually.
I already have functions to detect failure conditions like no connection to the 
PLC or lost
connection to the database and such. If that happens and the program cannot 
recover by itself, I get
an email so that I can take measures.

The linchpin of all this is, that the program itself is up and running, doesn't 
hang and that it can
still response. Otherwise, days can go by and no data is recorded.

So my idea was to have a little watchdog (to be programmed) running on a server 
which regularly
connects to all of the clients to get a response that all is well. The response 
could by for example
the timestamp of the last data received from the PLC or similar.
In case there is no response or the timestamp is too old, the watchdog notifies 
me by email.

Florian



>> I would like to implement a new feature into one of my applications 
>> where I can ask for a status
>> through a (VPN)network connection, kind of like Nagios does.
> 
> Status of what? 
> 
>> Or maybe even build functionality into it so that it can be queried
>> by Nagios.
> 
> Query what?  
> 
> Nagios is a Linux network monitoring tool, one of dozens, which I believe
> variously uses SNMP, HTTP.  

-- 
To unsubscribe or change your settings for TWSocket mailing list
please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be


Re: [twsocket] Nagios like communication

2014-06-25 Thread Florian Hector
> 
> which can be integrated into Nagios-compatible tools with the "check_tcp"
> plugin [1]. The "OverbyteIcsTcpSrv.dpr" ICS demo might be helpful as a
> starting point here.
> 

Tobias,

which component can be used as client to talk to the above server component.

Building an http server into my program sounds good but is way too much for 
what I need.

Florian
-- 
To unsubscribe or change your settings for TWSocket mailing list
please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be


Re: [twsocket] Nagios like communication

2014-06-25 Thread Florian Hector

> Look at free Magenta Systems IP Log Streaming Component at:
> 
> http://www.magsys.co.uk/delphi/magics.asp
> 
> which is a high level TCP/IP and UDP/IP, server and client, all in a single
> component, that can be dropped on a form and only needs a couple of events to
> send and receive lines of data.  
> 
> There is an EXE demo in the zip.  It handles all the boring error handling,
> connection and disconnection events, retries on failure, etc, so you just
> program your own protocol. 
> 
> I've just finished a new version supporting SSL and IPv6, not on the web site
> yet. 

Angus,

I just fiddled a bit with one server instance and several client instances, it 
seems to be exactly
what I need.
So, if I want to make the conversation back and forth like asking for a status 
and waiting for a
reply, I would need two instances of the component to handle both directions of 
the communication?

Florian
-- 
To unsubscribe or change your settings for TWSocket mailing list
please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be


[twsocket] Error when building an answer page

2014-08-31 Thread Florian Hector
Hi,

I am trying to create a virtual document where also the number and names of the 
tags can vary at
runtime.
When I build the answer page with a fixed number of tag like this:

ClientCnx.AnswerPage(Flags,
   '',
   '',
   'Status.html',
   nil,
 ['Date', DateToStr(Date),
 'Time', TimeToStr(Time)]);

Everything works nicely.
However, when I try to build the tags dynamically at runtime as string or 
stringlist, a page saying
"Odd number of tags for substitution" gets returned.

Is it at all possible what I try to do?
If so, what am I doing wrong?

Florian
-- 
To unsubscribe or change your settings for TWSocket mailing list
please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be


Re: [twsocket] Error when building an answer page

2014-08-31 Thread Florian Hector
> That tags parameters needs to have an even number of elements ([Tag,Value]) 
> and to create that tags
> parameter at runtime you have to use an *array of TVarRec* variable.

Would you have an example of how you assign a pair of values to this array of 
TVarRec.

Florian

-- 
To unsubscribe or change your settings for TWSocket mailing list
please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be


Re: [twsocket] Error when building an answer page

2014-08-31 Thread Florian Hector
> Tags[0]=Tag1
> Tags[1]=Value1
> Tags[2]=Tag2
> Tags[3]=Value2

No luck with all sorts of ways. When I define the tags statically at design 
time and step through
the code, the content of the variable TAGS is much different from when it is 
done at runtime.
> 
> Why do you need to build the tags dynamically?

I try to provide a function where I can define a page with tags w/o prior 
knowledge of number and
names of the tags. The application can hold 1, 10, 100... variables. The 
definition (number and
names) of the variables is defined by the user, hence known at runtime, so the 
user can define his
own template with the tags he is interested in. The template is used when 
creating the virtual document.
At runtime, the application knows both the name and the value of all variables, 
all of them go into
the definition of the tags when creating the virtual document and are thus 
available if defined in
the template or not.

Florian

-- 
To unsubscribe or change your settings for TWSocket mailing list
please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be


Re: [twsocket] Error when building an answer page

2014-09-01 Thread Florian Hector
>   Supposing you have a stringlist filled this way:
> 
>   TagValueList.Values['Date']:=DateToStr(Date);
>   TagValueList.Values['Time']:=TimeToStr(Time);
> 
> You can convert this list to an array of TVarRec using this code:
> 
>   setlength(tags,TagValueList.count*2);
>   i:=0;
>   while i   begin
>   tags[i].VType:=vtPChar;
>   tags[i].Vpchar:=pointer(strnew(pchar(TagValueList.Names[i])));
>   tags[i+1].VType:=vtPChar;
> tags[i+1].Vpchar:=pointer(strnew(pchar(TagValueList.ValueFromIndex[i])));
>   inc(i,2);
>   end;
> 
>   ClientCnx.AnswerPage(Flags,'','','status.html',nil,tags);
> 
>  for i:=low(tags) to high(tags) do
>   strdispose(tags[i].vpchar);

Way cool, this finally worked.

Thank you very much

Florian
-- 
To unsubscribe or change your settings for TWSocket mailing list
please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be


[twsocket] FTP file download done

2017-06-23 Thread Florian Hector
Hi,

upon downloading a file from an FTP Server I am trying to reset the filedate of 
the local file to
that of the original, would this be possible using ICS.

Also, is there a flag or such I can use to signal that the download of the file 
is finished before
the program tries to do anything with the file, such as renaming it or so.

Thanks for any help

Florian

-- 
To unsubscribe or change your settings for TWSocket mailing list
please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be


Re: [twsocket] FTP file download done

2017-06-26 Thread Florian Hector
Hi Angus,

I downloaded magxfer and the latest ICS snapshot from your website.
I replaced my older version of ICS with the newest and tested some of my 
programs, those seem to
work properly.

However, when I try to install magxfer, I can compile it but when I try to 
install it, Delphi (7)
complains about the missing package OverbyteIcsSslDel70, of which I cannot find 
any reference within
ICS.

Would you have a piece of advice for me.

Thank you

Florian

>> upon downloading a file from an FTP Server I am trying to reset 
>> the filedate of the local file to
>> that of the original, would this be possible using ICS.
> ICS has two functions UpdateFileAge and UpdateUFileAge in
> OverbyteIcsFtpSrvT.pas to set the time stamp to local or UTC time
> respectively.  
>
> Of course you need the correct time stamp to start with, which depends
> on the FTP server capabilities, some are better than others.  UTC is
> safer since it does not change twice a year. 
>  
>> Also, is there a flag or such I can use to signal that the 
>> download of the file is finished before he program tries to do
>> anything with the file, such as renaming it or so.
> Download with a changed file exetension, and only rename it to the
> original name once you are happy it's complete and not corrupted. 
>
> The free high level TMagFtp component does all this stuff automatically,
> from:
>
> https://www.magsys.co.uk/delphi/magxfer.asp
>
> Angus
>

-- 
To unsubscribe or change your settings for TWSocket mailing list
please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be


Re: [twsocket] FTP file download done

2017-06-26 Thread Florian Hector
Am 26.06.2017 um 16:51 schrieb Angus Robertson - Magenta Systems Ltd:
>> However, when I try to install magxfer, I can compile it but when 
>> I try to install it, Delphi (7)
>> complains about the missing package OverbyteIcsSslDel70, of which 
>> I cannot find any reference within ICS.
> We stopped tested against Delphi 7 several years ago, although ICS
> still supports it, in theory.  We try to support Delphi 2007 and later,
> but that is still dozens of compilers and platforms, I've lost track,
> just know I need to edit 44 packages to add a single unit to ICS, which
> is tedious and boring. 
>
> OverbyteIcsSslDelxx were old package names used by old versions of ICS,
> you must be installing an ancient version of TMagXfer, only the latest
> 4.6 is supported by ICS V8, and you might get some issues against the
> latest ICS in SVN.  
>
> The MagentaXfer7Run I assume you are building refers to
> OverbyteIcsD7Run, not OverbyteIcsSslDel70. 
>
> Angus
>  
>
Angus,

yes indeed it was version 2.7 I tried to install, this is the version behind 
the link "Magenta
Systems File Transfer Components 
" on your
website. Only the other one leads to the most recent version.

As predicted, I run into other issues when I now try to install the newest 
version.

Do you have any knowledge of other users of D7 and their success installing 
this newest combo?

Florian

-- 
To unsubscribe or change your settings for TWSocket mailing list
please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be


Re: [twsocket] FTP file download done

2017-06-27 Thread Florian Hector

> ICS has two functions UpdateFileAge and UpdateUFileAge in
> OverbyteIcsFtpSrvT.pas to set the time stamp to local or UTC time
> respectively.  
>
> Of course you need the correct time stamp to start with, which depends
> on the FTP server capabilities, some are better than others.  UTC is
> safer since it does not change twice a year. 
>  
Angus,

UpdateFileAge and UpdateUFileAge seem to be for the server side, what I need is 
to set the file age
of the downloaded file.

Florian
-- 
To unsubscribe or change your settings for TWSocket mailing list
please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be


Re: [twsocket] FTP file download done

2017-06-27 Thread Florian Hector
Am 27.06.2017 um 18:16 schrieb Angus Robertson - Magenta Systems Ltd:
>> UpdateFileAge and UpdateUFileAge seem to be for the server side, 
>> what I need is to set the file age of the downloaded file.
> They work fine in TMagFtp which is an FTP client.  
>
> Angus
>
I'd love to use TMagFtp with all the goodies  it has to offer, unfortunately I 
can't get my D7 to
install the components, so I'm stuck with what ICS has to offer for the time 
being.

I have to upgrade eventually, but not anytime soon.

Florian

-- 
To unsubscribe or change your settings for TWSocket mailing list
please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be