Home
last modified time | relevance | path

Searched refs:socketType (Results 1 – 25 of 42) sorted by relevance

12

/ohos5.0/base/hiviewdfx/hilog/frameworks/libhilog/socket/
H A Dsocket.cpp26 Socket::Socket(int socketType) : socketType(socketType) {} in Socket() argument
30 socketType = socketOption; in SetType()
50 int tmpFd = TEMP_FAILURE_RETRY(socket(AF_UNIX, socketType, 0)); in GenerateFD()
53 res = TEMP_FAILURE_RETRY(socket(AF_UNIX, socketType, 0)); in GenerateFD()
65 int fd = TEMP_FAILURE_RETRY(socket(AF_UNIX, socketType, 0)); in Create()
H A Dsocket_server.cpp36 SocketServer::SocketServer(const std::string& _socketName, uint32_t socketType) in SocketServer() argument
37 : socketHandler(0), socketType(socketType), socketName(_socketName) in SocketServer()
57 socketHandler = TEMP_FAILURE_RETRY(socket(AF_UNIX, socketType, 0)); in Init()
H A Dsocket_client.cpp31 SocketClient::SocketClient(std::string serverPath, uint32_t socketType) : Socket(socketType) in SocketClient() argument
/ohos5.0/foundation/communication/bluetooth/frameworks/inner/c_adapter/
H A Dohos_bt_socket.cpp85 if (socketPara->socketType == OHOS_SOCKET_SPP_RFCOMM) { in GetSocketUuidPara()
96 } else if (socketPara->socketType == OHOS_SOCKET_L2CAP_LE) { in GetSocketUuidPara()
99 HILOGE("param socketType invalid. socketType: %{public}d", socketPara->socketType); in GetSocketUuidPara()
120 if (socketPara->socketType == OHOS_SOCKET_L2CAP_LE) { in SocketServerCreate()
133 BtSocketType(socketPara->socketType), socketPara->isEncrypt); in SocketServerCreate()
143 socketPara->socketType, socketPara->isEncrypt); in SocketServerCreate()
253 BtSocketType(socketPara->socketType), socketPara->isEncrypt); in SocketConnect()
254 …HILOGI("socketType: %{public}d, isEncrypt: %{public}d", socketPara->socketType, socketPara->isEncr… in SocketConnect()
296 …if (socketPara->socketType != OHOS_SOCKET_SPP_RFCOMM && socketPara->socketType != OHOS_SOCKET_L2CA… in SocketConnectEx()
304 BtSocketType(socketPara->socketType), socketPara->isEncrypt, connWrapper); in SocketConnectEx()
[all …]
H A Dohos_bt_spp.cpp58 btsocketPara.socketType = BluetoothSocketType(socketPara->socketType); in SppServerCreate()
109 btsocketPara.socketType = BluetoothSocketType(socketPara->socketType); in SppConnect()
/ohos5.0/base/hiviewdfx/hilog/frameworks/libhilog/socket/include/
H A Ddgram_socket_client.h34 socketType = (socketOption & allowOption); in DgramSocketClient()
35 SetType(SOCK_DGRAM | socketType); in DgramSocketClient()
42 uint32_t socketType; variable
H A Dseq_packet_socket_client.h38 int socketType = SOCK_SEQPACKET | ((uint32_t)socketOption & (uint32_t)allowOption); in SeqPacketSocketClient() local
39 SetType(socketType); in SeqPacketSocketClient()
H A Dsocket.h27 explicit Socket(int socketType);
45 uint32_t socketType; variable
H A Dsocket_client.h29 SocketClient(std::string serverPath, uint32_t socketType);
H A Dsocket_server.h43 uint32_t socketType; variable
/ohos5.0/foundation/communication/netmanager_base/test/netmanagernative/unittest/netsys_manager_test/
H A Dnet_diag_wrapper_test.cpp371 NetDiagProtocolType socketType = NetDiagProtocolType::PROTOCOL_TYPE_ALL; variable
372 auto ret = netDiagWrapper->GetSocketsInfo(socketType, socketInfo);
376 socketType = NetDiagProtocolType::PROTOCOL_TYPE_TCP;
377 ret = netDiagWrapper->GetSocketsInfo(socketType, socketInfo);
381 socketType = NetDiagProtocolType::PROTOCOL_TYPE_UDP;
382 ret = netDiagWrapper->GetSocketsInfo(socketType, socketInfo);
386 socketType = NetDiagProtocolType::PROTOCOL_TYPE_UNIX;
387 ret = netDiagWrapper->GetSocketsInfo(socketType, socketInfo);
391 socketType = NetDiagProtocolType::PROTOCOL_TYPE_RAW;
392 ret = netDiagWrapper->GetSocketsInfo(socketType, socketInfo);
H A Dnetsys_controller_test.cpp785 …OHOS::NetsysNative::NetDiagProtocolType socketType = OHOS::NetsysNative::NetDiagProtocolType::PROT… variable
787 auto ret = NetsysController::GetInstance().NetDiagGetSocketsInfo(socketType, socketsInfo);
793 socketType = OHOS::NetsysNative::NetDiagProtocolType::PROTOCOL_TYPE_RAW;
794 ret = NetsysController::GetInstance().NetDiagGetSocketsInfo(socketType, socketsInfo);
800 socketType = OHOS::NetsysNative::NetDiagProtocolType::PROTOCOL_TYPE_TCP;
801 ret = NetsysController::GetInstance().NetDiagGetSocketsInfo(socketType, socketsInfo);
807 socketType = OHOS::NetsysNative::NetDiagProtocolType::PROTOCOL_TYPE_UDP;
808 ret = NetsysController::GetInstance().NetDiagGetSocketsInfo(socketType, socketsInfo);
814 socketType = OHOS::NetsysNative::NetDiagProtocolType::PROTOCOL_TYPE_UNIX;
815 ret = NetsysController::GetInstance().NetDiagGetSocketsInfo(socketType, socketsInfo);
[all …]
H A Dnetsys_native_service_test.cpp696 NetDiagProtocolType socketType = NetDiagProtocolType::PROTOCOL_TYPE_ALL; variable
698 ret = instance_->NetDiagGetSocketsInfo(socketType, socketsInfo);
726 NetDiagProtocolType socketType = NetDiagProtocolType::PROTOCOL_TYPE_ALL; variable
728 ret = instance_->NetDiagGetSocketsInfo(socketType, socketsInfo);
/ohos5.0/foundation/communication/netstack/frameworks/js/napi/socket/socket_exec/include/
H A Dsocket_exec_common.h85 static int MakeLocalSocket(int socketType, bool needNonblock = true)
87 int sock = socket(AF_UNIX, socketType, 0);
/ohos5.0/foundation/communication/dsoftbus/core/adapter/br/mock/
H A Dwrapper_br_interface.c46 socketPara.socketType = OHOS_SPP_SOCKET_RFCOMM; in OpenSppServer()
66 socketPara.socketType = OHOS_SOCKET_SPP_RFCOMM; in ConnectByPort()
/ohos5.0/foundation/communication/bluetooth/interfaces/inner_api/include/c_header/
H A Dohos_bt_spp.h37 BtSppSocketType socketType; member
H A Dohos_bt_socket.h44 BluetoothSocketType socketType; member
/ohos5.0/foundation/communication/netmanager_base/services/netmanagernative/include/netsys/
H A Dnet_diag_wrapper.h45 int32_t GetSocketsInfo(NetDiagProtocolType socketType, NetDiagSocketsInfo &socketsInfo);
/ohos5.0/foundation/multimodalinput/input/intention/adapters/dsoftbus_adapter/src/
H A Ddsoftbus_adapter_impl.cpp353 int32_t DSoftbusAdapterImpl::InitSocket(SocketInfo info, int32_t socketType, int32_t &socket) in InitSocket() argument
373 if (socketType == SOCKET_SERVER) { in InitSocket()
378 } else if (socketType == SOCKET_CLIENT) { in InitSocket()
/ohos5.0/base/msdp/device_status/intention/adapters/dsoftbus_adapter/src/
H A Ddsoftbus_adapter_impl.cpp355 int32_t DSoftbusAdapterImpl::InitSocket(SocketInfo info, int32_t socketType, int32_t &socket) in InitSocket() argument
375 if (socketType == SOCKET_SERVER) { in InitSocket()
380 } else if (socketType == SOCKET_CLIENT) { in InitSocket()
/ohos5.0/foundation/multimodalinput/input/intention/adapters/dsoftbus_adapter/include/
H A Ddsoftbus_adapter_impl.h94 int32_t InitSocket(SocketInfo info, int32_t socketType, int32_t &socket);
/ohos5.0/base/msdp/device_status/intention/adapters/dsoftbus_adapter/include/
H A Ddsoftbus_adapter_impl.h95 int32_t InitSocket(SocketInfo info, int32_t socketType, int32_t &socket);
/ohos5.0/foundation/communication/netmanager_base/services/netmanagernative/src/netsys/
H A Dnet_diag_wrapper.cpp143 int32_t NetDiagWrapper::GetSocketsInfo(NetDiagProtocolType socketType, NetDiagSocketsInfo &socketsI… in GetSocketsInfo() argument
146 switch (socketType) { in GetSocketsInfo()
163 NETNATIVE_LOGE("Unknown protocol type: %{public}d", socketType); in GetSocketsInfo()
/ohos5.0/foundation/communication/dsoftbus/components/nstackx/fillp/src/public/include/
H A Dsockets.h130 FILLP_INT socketType; // get from SockSocket member
/ohos5.0/foundation/communication/dsoftbus/components/nstackx/fillp/src/app_lib/src/
H A Dsocket_app.c127 sock->socketType = type; in SockSocket()
687 if ((sock->socketType == SOCK_DGRAM) && (item != FILLP_NULL_PTR)) { in SockRecvmsgDataFromBufCache()
718 ((item->dataLen == 0) || ((iovRemainLen == 0) && (sock->socketType == SOCK_DGRAM)))) { in SockRecvmsgDataFromBufCache()

12