VI_ATTR_TCPIP_KEEPALIVE

NI-VISA

VI_ATTR_TCPIP_KEEPALIVE

Resource Classes

TCPIP SOCKET

Attribute Information

Access Privilege Data Type Range Default

Read/Write
Local

ViBoolean

VI_TRUE(1)
VI_FALSE(0)

VI_FALSE

Description

Setting this attribute to TRUE requests that a TCP/IP provider enable the use of keep-alive packets on TCP connections. After the system detects that a connection was dropped, VISA returns a lost connection error code on subsequent I/O calls on the session. The time required for the system to detect that the connection was dropped is dependent on the system and is not settable.


Related Topics

SOCKET Resource

VI_ATTR_TCPIP_NODELAY