Loadable Function: tcp_timeout (tcp, timeout)
Loadable Function: t = tcp_timeout (tcp)

Set new or get existing tcp interface timeout parameter used for tcp_read() requests. The timeout value is specified in milliseconds.

Inputs

tcp - instance of octave_tcp class.
timeout - tcp_read() timeout value in milliseconds. Value of -1 means a blocking call.

Outputs

If timeout parameter is omitted, the tcp_timeout() shall return current timeout value as the result t.

Package: instrument-control