EldoS | Feel safer!

Software components for data protection, secure storage and transfer

TElSimpleFTPSServer - Listen To Two Ports At The Same Time

Also by EldoS: MsgConnect
Cross-platform protocol-independent communication framework for building peer-to-peer and client-server applications and middleware components.
#31557
Posted: 12/02/2014 02:23:20
by PM  (Standard support level)
Joined: 07/22/2014
Posts: 1

We are creating an FTP/FTPS server app with Delphi 2010.

It must be able to handle both FTP (port 21) and FTPS (port 990) at the same time.
(If I understand correctly, two TElSimpleFTPSServer components must be used.)


I modified your Sample FTPSServerDemo app by doing the following:

a. Copying+pasting the existing ElSimpleFTPSServer component.
- We now have ElSimpleFTPSServer1 and ElSimpleFTPSServer2
- Their events share the same code based on the Sample app

b. Added a TElMemoryCertStorage component which loads our certificate during app startup.

c. Set properties for ElSimpleFTPSServer1:
ImplicitSSL := False
Port := 21

d. Set properties for ElSimpleFTPSServer2:
CertStorage := ElMemoryCertStorage1
ImplicitSSL := True
Port := 990


All seems to be working correctly, however we have two questions:
1. Can both TElSimpleFTPSServer components share the same event code without any conflicts?

2. How should we use the OnSessionException event?
(For example, if this used to send a message to the Client app, then how would this code be written.)

Thanks.
#31558
Posted: 12/02/2014 02:39:42
by Vsevolod Ievgiienko (EldoS Corp.)

Thank you for contacting us.

Quote
1. Can both TElSimpleFTPSServer components share the same event code without any conflicts?

Yes they can is event handlers are thread safe.

Quote
2. How should we use the OnSessionException event?

This event is fired if internal exception occurs. You should use it for logging and debugging purposes.

Reply

Statistics

Topic viewed 394 times

Number of guests: 1, registered members: 0, in total hidden: 0




|

Back to top

As of July 15, 2016 EldoS Corporation will operate as a division of /n software inc. For more information, please read the announcement.

Got it!