Share this page

# 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

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: