Share this page

# 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

Copy code

    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");
            }
    }

Tips to improve your search results... VuGen Function Reference Version 25.1-25.3 Function Reference 25.1-25.3 All View Local Help Center View Online Help Center Version: