ITcpipSocket2::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
Address, Close, ComponentVersion, Flush,GetAttribute, HardwareInterfaceName, HardwareInterfaceNumber, HardwareInterfaceType, HostName, Init, KeepAlive, LockRsrc, LastStatus, , LockState, NoDelay, OptionString, Port, , ProgID, ResourceName, ServerCertificate, ServerCertificateExpirationDate, ServerCertificateIsPerpetual, ServerCertificateIssuerName, ServerCertificateSubjectName, SessionType, SetAttribute, SetBufferSize, SoftwareManufacturerID, SoftwareManufacturerName, SpecVersion, Timeout, TlsCipherSuite , UnlockRsrc, ITcpipSocket2 Overview