/*********************************************************************************************************************************** Socket Common Functions ***********************************************************************************************************************************/ #ifndef COMMON_IO_SOCKET_COMMON_H #define COMMON_IO_SOCKET_COMMON_H #include #include "common/time.h" #include "common/type/string.h" /*********************************************************************************************************************************** Functions ***********************************************************************************************************************************/ // Initialize settings for socket connections (some are used only for TCP) FN_EXTERN void sckInit(bool block, bool keepAlive, int tcpKeepAliveCount, int tcpKeepAliveIdle, int tcpKeepAliveInterval); // Set options on a socket FN_EXTERN void sckOptionSet(int fd); #endif