LrJposChannel.getHost

Gets the host name for the connected server.

public static String getHost()

Return values

This function returns a string that represents the server host name. It returns an empty string if the channel is not initialized.

Example

Copy code
public void getInfo() {
        
        String host = LrJposChannel.getHost();
        int port = LrJposChannel.getPort();
        ISOPackager packager = LrJposChannel.getPackager();
        
        lr.output_message("Channel properties: host - " + host + " port - " + port);
        if (packager != null) {
            lr.output_message("Packager description: " + packager.getDescription());
        }
        else {
            lr.output_message("Packager is not set");
        }
}