LrJposChannel.setTimeout
Sets the socket timeout.
public static void setTimeout(int timeout)
Parameters
timeout: An integer representing the socket timeout in milliseconds.
Return values
This function does not return any values.
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");
}
}