ITcpipSocket::KeepAlive

Description

An application can request that a TCP/IP provider enable the use of keep-alive packets on TCP connections by turning on this attribute.  If a connection is dropped as a result of keep-alives, the error code VI_ERROR_CONN_LOST is returned to current and subsequent I/O calls on the session.

VB Prototype

Dim value As Boolean
value = object.KeepAlive

object.KeepAlive = value

C++ Prototype

HRESULT get_KeepAlive(
  VARIANT_BOOL* KeepAlive
);

HRESULT put_KeepAlive(
  VARIANT_BOOL KeepAlive
);

Return Value

Refer to the table of return codes.

See Also

ComponentVersion, SpecVersion, HardwareInterfaceName, HardwareInterfaceNumber, HardwareInterfaceType, LockState, OptionString, ProgID, ResourceName, SessionType, SoftwareManufacturerID, SoftwareManufacturerName, Timeout, LastStatus, Address, HostName, KeepAlive, NoDelay, Port, GetAttribute, SetAttribute, LockRsrc, UnlockRsrc, Init, Close, SetBufferSize, Flush, ITcpipSocket Overview