EldoS | Feel safer!

Software components for data protection, secure storage and transfer

Simple TCP connection

Also by EldoS: BizCrypto
Components for BizTalk® and SQL Server® Integration Services that let you securely store and transfer information in your business automation solutions.
#25623
Posted: 07/10/2013 22:21:07
by Gabrie Marcelo (Standard support level)
Joined: 07/06/2013
Posts: 16

Hi,

Just bought HTTPBlackbox. I need to connect to an IP printer and send to it some bytes. I know the IP and port of the printer. What class should I use for this? any sample code in pascal would be appreciated. thanks,
#25627
Posted: 07/11/2013 01:07:54
by Vsevolod Ievgiienko (EldoS Corp.)

Thank you for contacting us.

It depends on what protocol does your printer use. If its HTTP/HTTPS then you should use TElHTTPSClient. If its raw socket connection protected with SSL/TLS then you should use TElSimpleSSLClient etc. Could you clarify this.

The samples are available for both. Please check \EldoS\SecureBlackbox.VCL\Samples\Delphi directory.
#25633
Posted: 07/11/2013 06:17:18
by Gabrie Marcelo (Standard support level)
Joined: 07/06/2013
Posts: 16

it is raw socket connection without protection. In this case should I still use TElSimpleSSLClient class?
#25634
Posted: 07/11/2013 06:20:38
by Vsevolod Ievgiienko (EldoS Corp.)

Then you can use TElSocket class.
#25635
Posted: 07/11/2013 06:36:08
by Gabrie Marcelo (Standard support level)
Joined: 07/06/2013
Posts: 16

thanks! please tell me, is TElSocket included in the HTTPBlackbox package that I've bought? and is there a sample code that shows me how to use it? thanks,
#25636
Posted: 07/11/2013 06:39:27
by Vsevolod Ievgiienko (EldoS Corp.)

Yes its included. We don't have such samples as its a low level component that is use by high level componets. As you have a source code you can refer to SBSimpleSSL.pas or SBHTTPSClient.pas for details as they use it internally.
#25642
Posted: 07/11/2013 09:03:15
by Gabrie Marcelo (Standard support level)
Joined: 07/06/2013
Posts: 16

thanks. I'm trying to code something around TElSocket. One question... if I know the IP address of the printer, I've to set Address printer to such IP. But sometimes, user can specify a DNS name instead of the IP. Can I set the Address property with a DNS name instead of an IP? If not, then how to do that? I see the DNS property but do not know how to proceed. thanks again,
#25643
Posted: 07/11/2013 09:06:36
by Vsevolod Ievgiienko (EldoS Corp.)

You can assign both IP and host name to Address property.
Also by EldoS: MsgConnect
Cross-platform protocol-independent communication framework for building peer-to-peer and client-server applications and middleware components.

Reply

Statistics

Topic viewed 2093 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!