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,

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.

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.

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,

We use cookies to help provide you with the best possible online experience. By using this site, you agree that we may store and access cookies on your device. You can find out more about and set your own preferences here.