Home
last modified time | relevance | path

Searched refs:keepAliveCount (Results 1 – 6 of 6) sorted by relevance

/ohos5.0/foundation/communication/dsoftbus/tests/core/bus_center/mock_common/src/
H A Dlnn_socket_mock.cpp63 …_t ConnSetTcpKeepalive(int32_t fd, int32_t seconds, int32_t keepAliveIntvl, int32_t keepAliveCount) in ConnSetTcpKeepalive() argument
65 … return GetSocketMockInterface()->ConnSetTcpKeepalive(fd, seconds, keepAliveIntvl, keepAliveCount); in ConnSetTcpKeepalive()
/ohos5.0/foundation/communication/dsoftbus/core/connection/common/src/
H A Dsoftbus_tcp_socket.c348 …_t ConnSetTcpKeepalive(int32_t fd, int32_t seconds, int32_t keepAliveIntvl, int32_t keepAliveCount) in ConnSetTcpKeepalive() argument
350 if (fd <= 0 || seconds <= 0 || keepAliveIntvl <= 0 || keepAliveCount <= 0) { in ConnSetTcpKeepalive()
362 …ocketSetOpt(fd, SOFTBUS_IPPROTO_TCP, SOFTBUS_TCP_KEEPCNT, &keepAliveCount, sizeof(keepAliveCount)); in ConnSetTcpKeepalive()
/ohos5.0/foundation/communication/dsoftbus/tests/core/bus_center/mock_common/include/
H A Dlnn_socket_mock.h34 int32_t fd, int32_t seconds, int32_t keepAliveIntvl, int32_t keepAliveCount) = 0;
/ohos5.0/foundation/communication/dsoftbus/core/connection/interface/
H A Dsoftbus_socket.h79 …t ConnSetTcpKeepalive(int32_t fd, int32_t seconds, int32_t keepAliveIntvl, int32_t keepAliveCount);
/ohos5.0/foundation/multimodalinput/input/intention/adapters/dsoftbus_adapter/src/
H A Ddsoftbus_adapter_impl.cpp509 int32_t keepAliveCount { 5 }; in ConfigTcpAlive() local
510 result = setsockopt(handle, IPPROTO_TCP, TCP_KEEPCNT, &keepAliveCount, sizeof(keepAliveCount)); in ConfigTcpAlive()
/ohos5.0/base/msdp/device_status/intention/adapters/dsoftbus_adapter/src/
H A Ddsoftbus_adapter_impl.cpp511 int32_t keepAliveCount { 5 }; in ConfigTcpAlive() local
512 result = setsockopt(handle, IPPROTO_TCP, TCP_KEEPCNT, &keepAliveCount, sizeof(keepAliveCount)); in ConfigTcpAlive()