Home
last modified time | relevance | path

Searched refs:socketFd_ (Results 1 - 25 of 32) sorted by relevance

12

/foundation/filemanagement/storage_service/services/storage_daemon/netlink/src/
H A Dnetlink_manager.cpp53 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 Dnetlink_listener.cpp78 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 Draw_socket.cpp41 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 Draw_socket.h32 int socketFd_; member in OHOS::Wifi::RawSocket
/foundation/communication/bluetooth/frameworks/inner/src/
H A Dbluetooth_socket_inputstream.cpp24 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 Dbluetooth_socket_outputstream.cpp35 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 Dbindsocket_context.cpp25 : 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 Dsocket_connection.cpp34 : 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 Dsoftbus_session.cpp35 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 Dsocket_connection.h50 int32_t socketFd_ { -1 };
58 return socketFd_; in GetFd()
/foundation/communication/bluetooth/interfaces/inner_api/include/
H A Dbluetooth_socket_outputstream.h77 int socketFd_; member in OHOS::Bluetooth::OutputStream
H A Dbluetooth_socket_inputstream.h77 int socketFd_; member in OHOS::Bluetooth::InputStream
/foundation/filemanagement/storage_service/services/storage_daemon/include/netlink/
H A Dnetlink_manager.h34 int32_t socketFd_ { -1 };
H A Dnetlink_listener.h37 int32_t socketFd_ { -1 };
/foundation/communication/netmanager_base/frameworks/js/napi/connection/async_context/include/
H A Dbindsocket_context.h38 int socketFd_; member in OHOS::NetManagerStandard::final
/foundation/communication/netmanager_ext/frameworks/js/napi/vpnext/include/context/
H A Dprotect_context_ext.h36 int32_t socketFd_ = -1; member in OHOS::NetManagerStandard::ProtectContext
/foundation/communication/netmanager_ext/frameworks/js/napi/vpn/include/context/
H A Dprotect_context.h36 int32_t socketFd_ = -1; member in OHOS::NetManagerStandard::ProtectContext
/foundation/filemanagement/dfs_service/services/distributedfiledaemon/include/network/softbus/
H A Dsoftbus_session.h45 int32_t socketFd_ {INVALID_SOCKET_FD};
/foundation/communication/netmanager_ext/frameworks/js/napi/vpn/src/context/
H A Dprotect_context.cpp53 socketFd_ = NapiUtils::GetInt32FromValue(GetEnv(), params[0]); in ParseParams()
/foundation/communication/netmanager_ext/frameworks/js/napi/vpnext/src/context/
H A Dprotect_context_ext.cpp53 socketFd_ = NapiUtils::GetInt32FromValue(GetEnv(), params[0]); in ParseParams()
/foundation/multimodalinput/input/intention/adapters/dsoftbus_adapter/src/
H A Ddsoftbus_adapter_impl.cpp395 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 Dvpn_exec_ext.cpp75 int32_t result = vpnClient->Protect(context->socketFd_, true); in ExecProtect()
/foundation/multimodalinput/input/intention/adapters/dsoftbus_adapter/include/
H A Ddsoftbus_adapter_impl.h108 int32_t socketFd_ { -1 };
/foundation/communication/netstack/test/unittest/tlssocket/server/
H A Dtls_socket_server_mock_branch_test.cpp73 connection->socketFd_ = socket(AF_INET, SOCK_STREAM, 0); in HWTEST_F()
/foundation/communication/netstack/test/unittest/tls_test/server/
H A Dtls_socket_server_mock_branch_test.cpp73 connection->socketFd_ = socket(AF_INET, SOCK_STREAM, 0); in HWTEST_F()

Completed in 7 milliseconds

12