Topics   All   MacOS (Only)   Windows (Only)   Linux (Only, Not)   iOS (Only, Not)  
Components   Crossplatform Mac & Win   Server   Client   Old   Deprecated   Guides   Examples   Videos
New in version: 12.2   12.3   12.4   12.5   13.0   13.1   13.2   13.3   13.4   13.5    Statistic    FMM    Blog  

Socket.EnableKeepAlive

Enables keep alive of TCP/IP socket.

Component Version macOS Windows Linux Server iOS SDK
Socket 10.3 ✅ Yes ✅ Yes ✅ Yes ✅ Yes ✅ Yes
MBS( "Socket.EnableKeepAlive"; SocketID )   More

Parameters

Parameter Description Example
SocketID The socket ID received by Socket.Connect function. $sock

Result

Returns OK or error.

Description

Enables keep alive of TCP/IP socket.
Once enabled, the computer will regularly send an alive message to the other side, so the TCP/IP socket doesn't time out.

See also

Release notes

Blog Entries

This function checks for a license.

Created 19th June 2020, last changed 19th June 2020


Socket.DropMembership - Socket.GetBroadcast

💬 Ask a question or report a problem