LrJposChannel.getTimeout
Gets the socket timeout value.
public static int getTimeout ()
Return values
This function returns an integer that represents the socket timeout, in milliseconds.
Example
public void setTimeout() throws Exception{
int defaultValue = LrJposChannel.getTimeout();
lr.output_message("Default timeout value: " + defaultValue);
if (defaultValue == 0) {
LrJposChannel.setTimeout(300);
lr.output_message("New timeout value: 300");
}
}