LrJposChannel.setPort
Sets the port to use for the connection to the server.
public static void setPort (int port)
Parameters
port: An integer that represents the port to connect to.
Return values
This function does not return any values.
Example
public int init() throws Throwable {
AsciiPackager2003 pack = new AsciiPackager2003();
LrJposChannel.initChannel(LrJposChannel.ChannelType.ASCIIChannel);
LrJposChannel.setHost("localhost");
LrJposChannel.setPort(8000);
LrJposChannel.setPackager(pack);
LrJposChannel.connect();
return 0;
}