Home
last modified time | relevance | path

Searched refs:getsockopt (Results 1 - 20 of 20) sorted by relevance

/foundation/communication/dsoftbus/components/nstackx/fillp/src/fillp_lib/include/
H A Dsysio.h48 int (*getsockopt)(void *argSock, FILLP_INT level, FILLP_INT optName, void *optVal, FILLP_INT *optLen); member
/foundation/communication/dsoftbus/components/nstackx/fillp/src/app_lib/src/
H A Dsocket_opt.c138 if (!OS_SOCK_OPS_FUNC_VALID(osSock, getsockopt)) { in SockGetSockOpt()
142 err = osSock->ioSock->ops->getsockopt(osSock->ioSock, level, optName, optVal, optLen); in SockGetSockOpt()
/foundation/communication/netmanager_ext/frameworks/native/netvpnclient/src/
H A Dvpn_interface.cpp74 if (getsockopt(sockfd, SOL_SOCKET, SO_ERROR, &result, &len) < 0) { in ConnectControl()
75 NETMGR_EXT_LOG_E("getsockopt error: %{public}d", errno); in ConnectControl()
/foundation/communication/netstack/frameworks/js/napi/socket/socket_exec/src/
H A Dlocal_socket_exec.cpp258 if (getsockopt(sock, SOL_SOCKET, type, reinterpret_cast<void *>(&timeout), &optlen) < 0) { in ConfirmSocketTimeoutMs()
271 if (getsockopt(sock, SOL_SOCKET, SO_SNDBUF, reinterpret_cast<void *>(&opt), &optLen) >= 0 && opt > 0) { in PollSendData()
276 if (getsockopt(sock, SOL_SOCKET, SO_TYPE, reinterpret_cast<void *>(&sockType), &optLen) < 0) { in PollSendData()
474 if (getsockopt(sock, SOL_SOCKET, SO_RCVBUF, reinterpret_cast<void *>(&opt), &optLen) >= 0 && opt > 0) { in ConfirmBufferSize()
799 if (getsockopt(sock, SOL_SOCKET, SO_ERROR, &error, &errorLen) < 0 || error != 0) { in NonBlockConnect()
939 if (getsockopt(sockfd, SOL_SOCKET, SO_RCVBUF, &result, &len) == -1) { in GetLocalSocketOptions()
940 NETSTACK_LOGE("getsockopt error, SO_RCVBUF"); in GetLocalSocketOptions()
944 if (getsockopt(sockfd, SOL_SOCKET, SO_SNDBUF, &result, &len) == -1) { in GetLocalSocketOptions()
945 NETSTACK_LOGE("getsockopt error, SO_SNDBUF"); in GetLocalSocketOptions()
951 if (getsockopt(sockf in GetLocalSocketOptions()
[all...]
H A Dsocket_exec.cpp532 if (getsockopt(sock, SOL_SOCKET, type, reinterpret_cast<void *>(&timeout), &optlen) < 0) { in ConfirmSocketTimeoutMs()
546 if (getsockopt(sock, SOL_SOCKET, SO_SNDBUF, reinterpret_cast<void *>(&opt), &optLen) >= 0 && opt > 0) { in PollSendData()
551 if (getsockopt(sock, SOL_SOCKET, SO_TYPE, reinterpret_cast<void *>(&sockType), &optLen) < 0) { in PollSendData()
664 if (getsockopt(sock, SOL_SOCKET, SO_RCVBUF, reinterpret_cast<void *>(&opt), &optLen) >= 0 && opt > 0) { in ConfirmBufferSize()
675 if (getsockopt(sockfd, SOL_SOCKET, SO_PROTOCOL, &optval, &optlen) != 0) { in IsTCPSocket()
853 ret = getsockopt(sock, SOL_SOCKET, SO_ERROR, reinterpret_cast<void *>(&err), &optLen); in NonBlockConnect()
1121 int r = getsockopt(context->GetSocketFd(), SOL_SOCKET, SO_TYPE, &opt, &optLen); in CheckClosed()
1515 if (getsockopt(context->GetSocketFd(), (family == AF_INET) ? IPPROTO_IP : IPPROTO_IPV6, (family == AF_INET) ? in ExecGetMulticastTTL()
1547 if (getsockopt(context->GetSocketFd(), (family == AF_INET) ? IPPROTO_IP : IPPROTO_IPV6, (family == AF_INET) ? in ExecGetLoopbackMode()
2075 if (getsockopt(contex in GetTcpServerState()
[all...]
/foundation/communication/netmanager_base/frameworks/native/netstatsclient/src/
H A Dnet_stats_client.cpp384 if (getsockopt(sockfd, SOL_SOCKET, SO_COOKIE, &optrval, &optlen) == -1) { in GetSockfdRxBytes()
385 NETMGR_LOG_E("getsockopt error"); in GetSockfdRxBytes()
407 if (getsockopt(sockfd, SOL_SOCKET, SO_COOKIE, &optrval, &optlen) == -1) { in GetSockfdTxBytes()
408 NETMGR_LOG_E("getsockopt error"); in GetSockfdTxBytes()
/foundation/communication/dsoftbus/adapter/common/kernel/posix/
H A Dsoftbus_adapter_socket.c124 int32_t ret = getsockopt(socketFd, level, optName, optVal, (socklen_t *)optLen); in SoftBusSocketGetOpt()
126 COMM_LOGE(COMM_ADAPTER, "getsockopt errno=%{public}s, ret=%{public}d", strerror(errno), ret); in SoftBusSocketGetOpt()
136 int32_t ret = getsockopt(socketFd, SOL_SOCKET, SO_ERROR, &err, &errSize); in SoftBusSocketGetError()
138 COMM_LOGE(COMM_ADAPTER, "getsockopt fd=%{public}d, errno=%{public}s, ret=%{public}d", in SoftBusSocketGetError()
143 COMM_LOGD(COMM_ADAPTER, "getsockopt fd=%{public}d, err=%{public}d", socketFd, err); in SoftBusSocketGetError()
/foundation/communication/dsoftbus/components/nstackx/nstackx_util/core/
H A Dnstackx_socket.c45 ret = getsockopt(fd, SOL_SOCKET, SO_SNDBUF, &bufSize, &optLen); in GetTcpSocketBufSize()
47 LOGE(TAG, "getsockopt SO_SNDBUF failed"); in GetTcpSocketBufSize()
52 ret = getsockopt(fd, SOL_SOCKET, SO_RCVBUF, &bufSize, &optLen); in GetTcpSocketBufSize()
54 LOGE(TAG, "getsockopt SO_RCVBUF failed"); in GetTcpSocketBufSize()
/foundation/graphic/graphic_2d/rosen/modules/render_service_profiler/
H A Drs_profiler_socket.cpp45 getsockopt(socket, SOL_SOCKET, SO_SNDTIMEO, reinterpret_cast<char*>(&timeout), &size); in GetTimeout()
/foundation/communication/netmanager_base/services/netmanagernative/src/netsys/
H A Dfwmark_network.cpp66 NETNATIVE_LOGE("getsockopt failed, socketFd:%{public}d, ret:%{public}d, errno: %{public}d", *socket, ret, in CloseSocket()
93 int32_t ret = getsockopt(*socketFd, SOL_SOCKET, SO_MARK, &fwmark.intValue, &fwmarkLen); in SetMark()
H A Dnetsys_client.c109 ret = getsockopt(sock, SOL_SOCKET, SO_ERROR, (void *)(&err), &optLen); in NonBlockConnect()
/foundation/communication/bluetooth/frameworks/inner/src/
H A Dbluetooth_socket.cpp231 if (getsockopt(fd_, SOL_SOCKET, opt.second, &curSize, &optlen) != 0) { in SetBufferSize()
232 HILOGE("SetBufferSize getsockopt %{public}s failed.", opt.first); in SetBufferSize()
245 if (getsockopt(fd_, SOL_SOCKET, opt.second, &curSize, &optlen) != 0) { in SetBufferSize()
246 HILOGE("SetBufferSize after getsockopt %{public}s failed.", opt.first); in SetBufferSize()
/foundation/communication/wifi/wifi/services/wifi_standard/wifi_framework/wifi_toolkit/net_helper/
H A Dhttp_request.cpp431 int ret = getsockopt(iSockFd, SOL_SOCKET, SO_ERROR, error, &len); in SocketFdCheck()
437 LOGE("HttpRequest::SocketFdCheck getsockopt failed. error code:%{public}d", errno); in SocketFdCheck()
441 LOGE("HttpRequest::SocketFdCheck getsockopt failed. error code:%{public}d", errno); in SocketFdCheck()
/foundation/communication/dsoftbus/components/nstackx/fillp/src/public/src/
H A Dcallbacks.c1156 return getsockopt(sockFd, level, optName, (char *)optVal, (int *)optLen); in FillpFuncGetSockOpt()
1158 return getsockopt(sockFd, level, optName, optVal, (socklen_t *)optLen); in FillpFuncGetSockOpt()
/foundation/communication/netstack/frameworks/js/napi/tls/src/
H A Dtlssocket_exec.cpp55 if (getsockopt(sockFD, SOL_SOCKET, SO_PROTOCOL, &optval, &optlen) != 0) { in IsTCPSocket()
H A Dtls_socket.cpp872 int r = getsockopt(sockFd_, SOL_SOCKET, SO_TYPE, &opt, &optLen); in GetState()
H A Dtls_socket_server.cpp396 int r = getsockopt(listenSocketFd_, SOL_SOCKET, SO_TYPE, &opt, &optLen); in GetState()
/foundation/communication/netmanager_ext/services/mdnsmanager/src/
H A Dmdns_protocol_impl.cpp157 if (getsockopt(sockfd, SOL_SOCKET, SO_ERROR, &result, &len) < 0) { in ConnectControl()
158 NETMGR_EXT_LOG_E("getsockopt error: %{public}d", errno); in ConnectControl()
/foundation/communication/dhcp/services/dhcp_server/src/
H A Ddhcp_s_server.cpp182 if (getsockopt(fd, SOL_SOCKET, SO_RCVBUF, (char *)&optrval, &optlen) == -1) { in InitServer()
/foundation/communication/dsoftbus/components/nstackx/nstackx_core/dfile/core/
H A Dnstackx_dfile.c1040 if (getsockopt(socket->sockfd, SOL_SOCKET, SO_RCVBUF, (void *)&optVal, &optLen) == 0) { in DFileRecverInit()

Completed in 39 milliseconds