/foundation/filemanagement/storage_service/services/storage_daemon/netlink/src/ |
H A D | netlink_manager.cpp | 53 socketFd_ = socket(PF_NETLINK, SOCK_DGRAM | SOCK_CLOEXEC, NETLINK_KOBJECT_UEVENT); in Start() 54 if (socketFd_ < 0) { in Start() 59 if (setsockopt(socketFd_, SOL_SOCKET, SO_RCVBUFFORCE, &bufferSize, sizeof(bufferSize)) != 0) { in Start() 61 (void)close(socketFd_); in Start() 65 if (setsockopt(socketFd_, SOL_SOCKET, SO_PASSCRED, &passCred, sizeof(passCred)) != 0) { in Start() 67 (void)close(socketFd_); in Start() 71 if (bind(socketFd_, reinterpret_cast<struct sockaddr *>(&addr), sizeof(addr)) != 0) { in Start() 73 (void)close(socketFd_); in Start() 77 nlHandler_ = new NetlinkHandler(socketFd_); in Start() 79 (void)close(socketFd_); in Start() [all...] |
H A D | netlink_listener.cpp | 78 auto count = UeventKernelMulticastRecv(socketFd_, msg.get(), UEVENT_MSG_LEN); in RecvUeventMsg() 110 } else if (ufds[i].fd == socketFd_) { in ReadMsg() 136 if (socketFd_ > -1) { in RunListener() 137 ufds[fdCount].fd = socketFd_; in RunListener() 172 if (socketFd_ < 0) { in StartListener() 212 socketFd_ = socket; in NetlinkListener()
|
/foundation/communication/wifi/wifi/services/wifi_standard/wifi_framework/wifi_toolkit/net_helper/ |
H A D | raw_socket.cpp | 41 RawSocket::RawSocket() : socketFd_(-1), ifaceIndex_(0), protocol_(0) in RawSocket() 97 socketFd_ = socketFd; in CreateSocket() 110 if (socketFd_ < 0 || ifaceIndex_ == 0) { in Send() 130 ret = sendto(socketFd_, buff, count, 0, reinterpret_cast<struct sockaddr *>(&rawAddr), sizeof(rawAddr)); in Send() 143 if (socketFd_ < 0) { in Recv() 149 fds[0].fd = socketFd_; in Recv() 157 nBytes = read(socketFd_, buff, count); in Recv() 172 if (socketFd_ >= 0) { in Close() 173 ret = close(socketFd_); in Close() 178 socketFd_ in Close() [all...] |
H A D | raw_socket.h | 32 int socketFd_; member in OHOS::Wifi::RawSocket
|
/foundation/communication/bluetooth/frameworks/inner/src/ |
H A D | bluetooth_socket_inputstream.cpp | 24 InputStream::InputStream(int socketFd) : socketFd_(socketFd) in InputStream() 32 if (socketFd_ == -1) { in Read() 37 auto ret = recv(socketFd_, buf, length, MSG_NOSIGNAL); in Read()
|
H A D | bluetooth_socket_outputstream.cpp | 35 OutputStream::OutputStream(int socketFd) : socketFd_(socketFd) in OutputStream() 43 if (socketFd_ == -1) { in Write() 49 auto ret = send(socketFd_, buf, length, MSG_NOSIGNAL); in Write()
|
/foundation/communication/netmanager_base/frameworks/js/napi/connection/async_context/src/ |
H A D | bindsocket_context.cpp | 25 : BaseContext(env, manager), netId_(0), socketFd_(0) in BindSocketContext() 36 socketFd_ = NapiUtils::GetInt32Property(GetEnv(), params[ARG_INDEX_0], KEY_SOCKET_FD); in ParseParams() 37 if (socketFd_ == 0) { in ParseParams() 46 NETMANAGER_BASE_LOGI("socket is %{public}d", socketFd_); in ParseParams()
|
/foundation/multimodalinput/input/intention/ipc/socket/src/ |
H A D | socket_connection.cpp | 34 : socketFd_(socketFd), recv_(recv), onDisconnected_(onDisconnected) in SocketConnection() 39 if ((socketFd_ >= 0) && (::close(socketFd_) != 0)) { in ~SocketConnection() 40 FI_HILOGE("close(%{public}d) failed:%{public}s", socketFd_, ::strerror(errno)); in ~SocketConnection()
|
/foundation/filemanagement/dfs_service/services/distributedfiledaemon/src/network/softbus/ |
H A D | softbus_session.cpp | 35 socketFd_ = INVALID_SOCKET_FD; in SoftbusSession() 49 socketFd_ = socketFd; in SoftbusSession() 74 return socketFd_; in GetHandle()
|
/foundation/multimodalinput/input/intention/ipc/socket/include/ |
H A D | socket_connection.h | 50 int32_t socketFd_ { -1 }; 58 return socketFd_; in GetFd()
|
/foundation/communication/bluetooth/interfaces/inner_api/include/ |
H A D | bluetooth_socket_outputstream.h | 77 int socketFd_; member in OHOS::Bluetooth::OutputStream
|
H A D | bluetooth_socket_inputstream.h | 77 int socketFd_; member in OHOS::Bluetooth::InputStream
|
/foundation/filemanagement/storage_service/services/storage_daemon/include/netlink/ |
H A D | netlink_manager.h | 34 int32_t socketFd_ { -1 };
|
H A D | netlink_listener.h | 37 int32_t socketFd_ { -1 };
|
/foundation/communication/netmanager_base/frameworks/js/napi/connection/async_context/include/ |
H A D | bindsocket_context.h | 38 int socketFd_; member in OHOS::NetManagerStandard::final
|
/foundation/communication/netmanager_ext/frameworks/js/napi/vpnext/include/context/ |
H A D | protect_context_ext.h | 36 int32_t socketFd_ = -1; member in OHOS::NetManagerStandard::ProtectContext
|
/foundation/communication/netmanager_ext/frameworks/js/napi/vpn/include/context/ |
H A D | protect_context.h | 36 int32_t socketFd_ = -1; member in OHOS::NetManagerStandard::ProtectContext
|
/foundation/filemanagement/dfs_service/services/distributedfiledaemon/include/network/softbus/ |
H A D | softbus_session.h | 45 int32_t socketFd_ {INVALID_SOCKET_FD};
|
/foundation/communication/netmanager_ext/frameworks/js/napi/vpn/src/context/ |
H A D | protect_context.cpp | 53 socketFd_ = NapiUtils::GetInt32FromValue(GetEnv(), params[0]); in ParseParams()
|
/foundation/communication/netmanager_ext/frameworks/js/napi/vpnext/src/context/ |
H A D | protect_context_ext.cpp | 53 socketFd_ = NapiUtils::GetInt32FromValue(GetEnv(), params[0]); in ParseParams()
|
/foundation/multimodalinput/input/intention/adapters/dsoftbus_adapter/src/ |
H A D | dsoftbus_adapter_impl.cpp | 395 if (socketFd_ > 0) { in SetupServer() 407 int32_t ret = InitSocket(info, SOCKET_SERVER, socketFd_); in SetupServer() 419 if (socketFd_ > 0) { in ShutdownServer() 420 ::Shutdown(socketFd_); in ShutdownServer() 421 socketFd_ = -1; in ShutdownServer()
|
/foundation/communication/netmanager_ext/frameworks/js/napi/vpnext/src/ |
H A D | vpn_exec_ext.cpp | 75 int32_t result = vpnClient->Protect(context->socketFd_, true); in ExecProtect()
|
/foundation/multimodalinput/input/intention/adapters/dsoftbus_adapter/include/ |
H A D | dsoftbus_adapter_impl.h | 108 int32_t socketFd_ { -1 };
|
/foundation/communication/netstack/test/unittest/tlssocket/server/ |
H A D | tls_socket_server_mock_branch_test.cpp | 73 connection->socketFd_ = socket(AF_INET, SOCK_STREAM, 0); in HWTEST_F()
|
/foundation/communication/netstack/test/unittest/tls_test/server/ |
H A D | tls_socket_server_mock_branch_test.cpp | 73 connection->socketFd_ = socket(AF_INET, SOCK_STREAM, 0); in HWTEST_F()
|