Home
last modified time | relevance | path

Searched refs:socketFd (Results 1 - 25 of 109) sorted by relevance

12345

/foundation/communication/dsoftbus/tests/adapter/unittest/
H A Dsoftbus_socket_test.cpp78 int32_t socketFd = -1; in SocketServiceStart() local
84 int32_t ret = SoftBusSocketCreate(SOFTBUS_AF_INET, SOFTBUS_SOCK_STREAM, 0, &socketFd); in SocketServiceStart()
87 ret = SoftBusSocketSetOpt(socketFd, SOFTBUS_SOL_SOCKET, SOFTBUS_SO_REUSEADDR, &optVal, sizeof(optVal)); in SocketServiceStart()
90 ret = SoftBusSocketBind(socketFd, (SoftBusSockAddr *)&g_serAddr, sizeof(SoftBusSockAddrIn)); in SocketServiceStart()
93 ret = SoftBusSocketListen(socketFd, backLog); in SocketServiceStart()
95 ret = SoftBusSocketAccept(socketFd, (SoftBusSockAddr *)&cliAddr, &acceptFd); in SocketServiceStart()
126 ret = SoftBusSocketClose(socketFd); in SocketServiceStart()
134 int32_t socketFd = -1; in SocketIpv6ServiceStart() local
140 int32_t ret = SoftBusSocketCreate(SOFTBUS_AF_INET6, SOFTBUS_SOCK_STREAM, 0, &socketFd); in SocketIpv6ServiceStart()
143 ret = SoftBusSocketSetOpt(socketFd, SOFTBUS_SOL_SOCKE in SocketIpv6ServiceStart()
193 ClientConnect(int32_t *socketFd) ClientConnect() argument
209 ClientIpv6Connect(int32_t *socketFd) ClientIpv6Connect() argument
224 ClientExit(int32_t socketFd) ClientExit() argument
244 int32_t socketFd = -1; HWTEST_F() local
265 int32_t socketFd = -1; HWTEST_F() local
278 int32_t socketFd = -1; HWTEST_F() local
293 int32_t socketFd = -1; HWTEST_F() local
318 int32_t socketFd = -1; HWTEST_F() local
338 int32_t socketFd; HWTEST_F() local
358 int32_t socketFd; HWTEST_F() local
393 int32_t socketFd; HWTEST_F() local
413 int32_t socketFd; HWTEST_F() local
433 int32_t socketFd; HWTEST_F() local
453 int32_t socketFd; HWTEST_F() local
493 int32_t socketFd = -1; HWTEST_F() local
509 int32_t socketFd = -1; HWTEST_F() local
531 int32_t socketFd = -1; HWTEST_F() local
557 int32_t socketFd = -1; HWTEST_F() local
576 int32_t socketFd; HWTEST_F() local
595 int32_t socketFd = -1; HWTEST_F() local
617 int32_t socketFd = -1; HWTEST_F() local
644 int32_t socketFd = -1; HWTEST_F() local
689 int32_t socketFd = -1; HWTEST_F() local
715 int32_t socketFd = -1; HWTEST_F() local
735 int32_t socketFd; HWTEST_F() local
762 int32_t socketFd = -1; HWTEST_F() local
786 int32_t socketFd = -1; HWTEST_F() local
806 int32_t socketFd = -1; HWTEST_F() local
826 int32_t socketFd = -1; HWTEST_F() local
842 int32_t socketFd = -1; HWTEST_F() local
859 int32_t socketFd = -1; HWTEST_F() local
882 int32_t socketFd = -1; HWTEST_F() local
908 int32_t socketFd = -1; HWTEST_F() local
934 int32_t socketFd = -1; HWTEST_F() local
949 int32_t socketFd = -1; HWTEST_F() local
985 int32_t socketFd = -1; HWTEST_F() local
1001 int32_t socketFd = -1; HWTEST_F() local
1018 int32_t socketFd = -1; HWTEST_F() local
1061 int32_t socketFd = -1; HWTEST_F() local
1077 int32_t socketFd = -1; HWTEST_F() local
1093 int32_t socketFd = -1; HWTEST_F() local
1286 int32_t socketFd; HWTEST_F() local
1314 int32_t socketFd; HWTEST_F() local
1397 int32_t socketFd = -1; HWTEST_F() local
1412 int32_t socketFd; HWTEST_F() local
1431 int32_t socketFd; HWTEST_F() local
1452 int32_t socketFd = -1; HWTEST_F() local
1468 int32_t socketFd = -1; HWTEST_F() local
1491 int32_t socketFd = -1; HWTEST_F() local
1529 int32_t socketFd = -1; HWTEST_F() local
1569 int32_t socketFd = -1; HWTEST_F() local
1589 int32_t socketFd = -1; HWTEST_F() local
1613 int32_t socketFd = -1; HWTEST_F() local
1643 int32_t socketFd = -1; HWTEST_F() local
1671 int32_t socketFd = -1; HWTEST_F() local
1696 int32_t socketFd = -1; HWTEST_F() local
[all...]
/foundation/communication/dsoftbus/adapter/common/kernel/posix/
H A Dsoftbus_adapter_socket.c95 int32_t SoftBusSocketCreate(int32_t domain, int32_t type, int32_t protocol, int32_t *socketFd) in SoftBusSocketCreate() argument
97 if (socketFd == NULL) { in SoftBusSocketCreate()
98 COMM_LOGE(COMM_ADAPTER, "socketFd is null"); in SoftBusSocketCreate()
106 *socketFd = ret; in SoftBusSocketCreate()
111 int32_t SoftBusSocketSetOpt(int32_t socketFd, int32_t level, int32_t optName, const void *optVal, int32_t optLen) in SoftBusSocketSetOpt() argument
113 int32_t ret = setsockopt(socketFd, level, optName, optVal, (socklen_t)optLen); in SoftBusSocketSetOpt()
122 int32_t SoftBusSocketGetOpt(int32_t socketFd, int32_t level, int32_t optName, void *optVal, int32_t *optLen) in SoftBusSocketGetOpt() argument
124 int32_t ret = getsockopt(socketFd, level, optName, optVal, (socklen_t *)optLen); in SoftBusSocketGetOpt()
132 int32_t SoftBusSocketGetError(int32_t socketFd) in SoftBusSocketGetError() argument
136 int32_t ret = getsockopt(socketFd, SOL_SOCKE in SoftBusSocketGetError()
149 SoftBusSocketGetLocalName(int32_t socketFd, SoftBusSockAddr *addr) SoftBusSocketGetLocalName() argument
164 SoftBusSocketGetPeerName(int32_t socketFd, SoftBusSockAddr *addr) SoftBusSocketGetPeerName() argument
180 SoftBusSocketBind(int32_t socketFd, SoftBusSockAddr *addr, int32_t addrLen) SoftBusSocketBind() argument
197 SoftBusSocketListen(int32_t socketFd, int32_t backLog) SoftBusSocketListen() argument
211 SoftBusSocketAccept(int32_t socketFd, SoftBusSockAddr *addr, int32_t *acceptFd) SoftBusSocketAccept() argument
231 SoftBusSocketConnect(int32_t socketFd, const SoftBusSockAddr *addr, int32_t addrLen) SoftBusSocketConnect() argument
262 SoftBusSocketFdSet(int32_t socketFd, SoftBusFdSet *set) SoftBusSocketFdSet() argument
276 SoftBusSocketFdClr(int32_t socketFd, SoftBusFdSet *set) SoftBusSocketFdClr() argument
286 SoftBusSocketFdIsset(int32_t socketFd, SoftBusFdSet *set) SoftBusSocketFdIsset() argument
343 SoftBusSocketIoctl(int32_t socketFd, long cmd, void *argp) SoftBusSocketIoctl() argument
354 SoftBusSocketFcntl(int32_t socketFd, long cmd, long flag) SoftBusSocketFcntl() argument
365 SoftBusSocketSend(int32_t socketFd, const void *buf, uint32_t len, uint32_t flags) SoftBusSocketSend() argument
377 SoftBusSocketSendTo(int32_t socketFd, const void *buf, uint32_t len, int32_t flags, const SoftBusSockAddr *toAddr, int32_t toAddrLen) SoftBusSocketSendTo() argument
393 SoftBusSocketRecv(int32_t socketFd, void *buf, uint32_t len, int32_t flags) SoftBusSocketRecv() argument
405 SoftBusSocketRecvFrom(int32_t socketFd, void *buf, uint32_t len, int32_t flags, SoftBusSockAddr *fromAddr, int32_t *fromAddrLen) SoftBusSocketRecvFrom() argument
422 SoftBusSocketShutDown(int32_t socketFd, int32_t how) SoftBusSocketShutDown() argument
433 SoftBusSocketClose(int32_t socketFd) SoftBusSocketClose() argument
[all...]
/foundation/communication/netmanager_base/services/netmanagernative/fwmarkclient/src/
H A Dfwmark_client.cpp47 int32_t FwmarkClient::ProtectFromVpn(int32_t socketFd) in ProtectFromVpn() argument
49 if (socketFd < 0) { in ProtectFromVpn()
50 return HandleError(-1, ERROR_CODE_SOCKETFD_INVALID, socketFd); in ProtectFromVpn()
53 return Send(&command, socketFd); in ProtectFromVpn()
58 auto socketFd = socket(AF_UNIX, SOCK_STREAM | SOCK_CLOEXEC, 0); in Send() local
59 if (socketFd == -1) { in Send()
60 return HandleError(-1, ERROR_CODE_SOCKETFD_INVALID, socketFd); in Send()
62 if (connect(socketFd, reinterpret_cast<const sockaddr *>(&FWMARK_SERVER_PATH), sizeof(FWMARK_SERVER_PATH)) == -1) { in Send()
63 return HandleError(-1, ERROR_CODE_CONNECT_FAILED, socketFd); in Send()
86 int32_t ret = sendmsg(socketFd, in Send()
[all...]
/foundation/communication/dsoftbus/adapter/common/include/
H A Dsoftbus_adapter_socket.h139 int32_t SoftBusSocketCreate(int32_t domain, int32_t type, int32_t protocol, int32_t *socketFd);
140 int32_t SoftBusSocketSetOpt(int32_t socketFd, int32_t level, int32_t optName, const void *optVal, int32_t optLen);
141 int32_t SoftBusSocketGetOpt(int32_t socketFd, int32_t level, int32_t optName, void *optVal, int32_t *optLen);
142 int32_t SoftBusSocketGetLocalName(int32_t socketFd, SoftBusSockAddr *addr);
143 int32_t SoftBusSocketGetPeerName(int32_t socketFd, SoftBusSockAddr *addr);
145 int32_t SoftBusSocketBind(int32_t socketFd, SoftBusSockAddr *addr, int32_t addrLen);
146 int32_t SoftBusSocketListen(int32_t socketFd, int32_t backLog);
147 int32_t SoftBusSocketAccept(int32_t socketFd, SoftBusSockAddr *addr, int32_t *acceptFd);
148 int32_t SoftBusSocketConnect(int32_t socketFd, const SoftBusSockAddr *addr, int32_t addrLen);
151 void SoftBusSocketFdSet(int32_t socketFd, SoftBusFdSe
[all...]
/foundation/communication/dsoftbus/tests/core/bus_center/mock_common/src/
H A Dnetwork_mock.cpp41 int32_t SoftBusSocketCreate(int32_t domain, int32_t type, int32_t protocol, int32_t *socketFd) in SoftBusSocketCreate() argument
43 return GetNetworkInterface()->SoftBusSocketCreate(domain, type, protocol, socketFd); in SoftBusSocketCreate()
46 int32_t SoftBusSocketSetOpt(int32_t socketFd, int32_t level, int32_t optName, const void *optVal, int32_t optLen) in SoftBusSocketSetOpt() argument
48 return GetNetworkInterface()->SoftBusSocketSetOpt(socketFd, level, optName, optVal, optLen); in SoftBusSocketSetOpt()
51 int32_t SoftBusSocketClose(int32_t socketFd) in SoftBusSocketClose() argument
53 return GetNetworkInterface()->SoftBusSocketClose(socketFd); in SoftBusSocketClose()
56 int32_t SoftBusSocketBind(int32_t socketFd, SoftBusSockAddr *addr, int32_t addrLen) in SoftBusSocketBind() argument
58 return GetNetworkInterface()->SoftBusSocketBind(socketFd, addr, addrLen); in SoftBusSocketBind()
71 int32_t SoftBusSocketRecv(int32_t socketFd, void *buf, uint32_t len, int32_t flags) in SoftBusSocketRecv() argument
73 return GetNetworkInterface()->SoftBusSocketRecv(socketFd, bu in SoftBusSocketRecv()
[all...]
/foundation/multimodalinput/input/intention/ipc/socket/src/
H A Dsocket_params.cpp41 AllocSocketPairReply::AllocSocketPairReply(int32_t tokenType, int32_t socketFd) in AllocSocketPairReply() argument
42 : tokenType(tokenType), socketFd(socketFd) in AllocSocketPairReply()
49 parcel.WriteFileDescriptor(socketFd) in Marshalling()
56 socketFd = parcel.ReadFileDescriptor(); in Unmarshalling()
57 return (ret && (socketFd >= 0)); in Unmarshalling()
/foundation/communication/netmanager_base/services/netmanagernative/src/netsys/
H A Dfwmark_network.cpp59 NETNATIVE_LOGE("socketFd invalid:%{public}d, ret:%{public}d, errno: %{public}d", *socket, ret, errno); in CloseSocket()
66 NETNATIVE_LOGE("getsockopt failed, socketFd:%{public}d, ret:%{public}d, errno: %{public}d", *socket, ret, in CloseSocket()
70 NETNATIVE_LOGE("setsockopt failed socketFd:%{public}d, ret:%{public}d, errno: %{public}d", *socket, ret, in CloseSocket()
85 int32_t SetMark(int32_t *socketFd, FwmarkCommand *command) in SetMark() argument
87 if (command == nullptr || socketFd == nullptr) { in SetMark()
88 NETNATIVE_LOGE("SetMark failed, command or socketFd is nullptr"); in SetMark()
93 int32_t ret = getsockopt(*socketFd, SOL_SOCKET, SO_MARK, &fwmark.intValue, &fwmarkLen); in SetMark()
95 CloseSocket(socketFd, ret, ERROR_CODE_GETSOCKOPT_FAILED); in SetMark()
98 NETNATIVE_LOGI("FwmarkNetwork: SetMark netId: %{public}d, socketFd:%{public}d, cmd:%{public}d", command->netId, in SetMark()
99 *socketFd, comman in SetMark()
142 int32_t socketFd = -1; SendMessage() local
[all...]
/foundation/filemanagement/storage_service/services/storage_daemon/netlink/test/
H A Dnetlink_listener_test.cpp31 int32_t StartSocket(int32_t& socketFd);
89 int32_t StartSocket(int32_t& socketFd) in StartSocket() argument
99 socketFd = socket(PF_NETLINK, SOCK_DGRAM | SOCK_CLOEXEC, NETLINK_KOBJECT_UEVENT); in StartSocket()
100 if (socketFd < 0) { in StartSocket()
105 if (setsockopt(socketFd, SOL_SOCKET, SO_RCVBUFFORCE, &sz, sizeof(sz)) != 0) { in StartSocket()
107 (void)close(socketFd); in StartSocket()
111 if (setsockopt(socketFd, SOL_SOCKET, SO_PASSCRED, &on, sizeof(on)) != 0) { in StartSocket()
113 (void)close(socketFd); in StartSocket()
117 if (bind(socketFd, reinterpret_cast<struct sockaddr *>(&addr), sizeof(addr)) != 0) { in StartSocket()
119 (void)close(socketFd); in StartSocket()
[all...]
H A Dnetlink_handler_test.cpp31 int32_t StartSocket(int32_t& socketFd);
91 int32_t StartSocket(int32_t& socketFd) in StartSocket() argument
102 socketFd = socket(PF_NETLINK, SOCK_DGRAM | SOCK_CLOEXEC, NETLINK_KOBJECT_UEVENT); in StartSocket()
103 if (socketFd < 0) { in StartSocket()
108 if (setsockopt(socketFd, SOL_SOCKET, SO_RCVBUFFORCE, &sz, sizeof(sz)) != 0) { in StartSocket()
110 (void)close(socketFd); in StartSocket()
114 if (setsockopt(socketFd, SOL_SOCKET, SO_PASSCRED, &on, sizeof(on)) != 0) { in StartSocket()
116 (void)close(socketFd); in StartSocket()
120 if (bind(socketFd, reinterpret_cast<struct sockaddr *>(&addr), sizeof(addr)) != 0) { in StartSocket()
122 (void)close(socketFd); in StartSocket()
[all...]
/foundation/communication/netmanager_base/services/netmanagernative/src/netsys/wrapper/
H A Dnetlink_manager.cpp58 int32_t socketFd; in CreateNetlinkDistributor() local
64 if ((socketFd = socket(PF_NETLINK, SOCK_DGRAM | SOCK_CLOEXEC, netlinkType)) < 0) { in CreateNetlinkDistributor()
70 if (setsockopt(socketFd, SOL_SOCKET, SO_RCVBUFFORCE, &size, sizeof(size)) < 0 && in CreateNetlinkDistributor()
71 setsockopt(socketFd, SOL_SOCKET, SO_RCVBUF, &size, sizeof(size)) < 0) { in CreateNetlinkDistributor()
74 close(socketFd); in CreateNetlinkDistributor()
78 if (setsockopt(socketFd, SOL_SOCKET, SO_PASSCRED, &on, sizeof(on)) < 0) { in CreateNetlinkDistributor()
81 close(socketFd); in CreateNetlinkDistributor()
85 if (bind(socketFd, reinterpret_cast<sockaddr *>(&sockAddr), sizeof(sockAddr)) < 0) { in CreateNetlinkDistributor()
88 close(socketFd); in CreateNetlinkDistributor()
91 NETNATIVE_LOGI("CreateNetlinkDistributor netlinkType: %{public}d, socketFd in CreateNetlinkDistributor()
[all...]
/foundation/communication/netstack/test/unittest/tlssocket/server/
H A DTlsSocketServerTest.cpp121 int socketFd = tlsServerSendOptions.GetSocket(); in HWTEST_F() local
126 (void)server.Close(socketFd, [](int32_t errCode) { EXPECT_TRUE(errCode == TlsSocket::TLSSOCKET_SUCCESS); }); in HWTEST_F()
138 int socketFd = tlsServerSendOptions.GetSocket(); in HWTEST_F() local
147 (void)server.Close(socketFd, [](int32_t errCode) { EXPECT_TRUE(errCode == TlsSocket::TLSSOCKET_SUCCESS); }); in HWTEST_F()
163 int socketFd = tlsServerSendOptions.GetSocket(); in HWTEST_F() local
171 server.GetRemoteAddress(socketFd, [&netAddress](int32_t errCode, in HWTEST_F()
184 (void)server.Close(socketFd, [](int32_t errCode) { EXPECT_TRUE(errCode == TlsSocket::TLSSOCKET_SUCCESS); }); in HWTEST_F()
199 int socketFd = tlsServerSendOptions.GetSocket(); in HWTEST_F() local
208 server.GetRemoteCertificate(socketFd, [](int32_t errCode, const TlsSocket::X509CertRawData &cert) { in HWTEST_F()
211 (void)server.Close(socketFd, [](int32_ in HWTEST_F()
227 int socketFd = tlsServerSendOptions.GetSocket(); HWTEST_F() local
248 int socketFd = tlsServerSendOptions.GetSocket(); HWTEST_F() local
285 int socketFd = tlsServerSendOptions.GetSocket(); HWTEST_F() local
[all...]
/foundation/communication/netstack/interfaces/innerkits/tls_socket/include/
H A Dtls_socket_server.h50 std::function<void(const int &socketFd, const std::string &data, const Socket::SocketRemoteInfo &remoteInfo)>;
51 using OnCloseCallback = std::function<void(const int &socketFd)>;
52 using OnConnectCallback = std::function<void(const int &socketFd, std::shared_ptr<EventManager> eventManager)>;
58 * @param socketFd Communication descriptor
60 void SetSocket(const int &socketFd);
112 * @param socketFd The socket ID of the client
115 void Close(const int socketFd, const TlsSocket::CloseCallback &callback);
125 * @param socketFd The socket ID of the client
128 void GetRemoteAddress(const int socketFd, const TlsSocket::GetRemoteAddressCallback &callback);
132 * @param socketFd Th
[all...]
/foundation/filemanagement/dfs_service/services/distributedfiledaemon/src/network/softbus/
H A Dsoftbus_session.cpp31 int32_t socketFd = INVALID_SOCKET_FD; in SoftbusSession() local
32 int32_t ret = ::GetSessionHandle(sessionId_, &socketFd); in SoftbusSession()
37 int32_t flags = fcntl(socketFd, F_GETFL, 0); in SoftbusSession()
44 ret = fcntl(socketFd, F_SETFL, flags); in SoftbusSession()
49 socketFd_ = socketFd; in SoftbusSession()
/foundation/communication/netmanager_base/services/netmanagernative/src/netsys/dnsresolv/
H A Ddns_proxy_listen.cpp64 int32_t socketFd = -1; in DnsParseBySocket() local
66 socketFd = socket(AF_INET, SOCK_DGRAM | SOCK_CLOEXEC | SOCK_NONBLOCK, IPPROTO_UDP); in DnsParseBySocket()
68 socketFd = socket(AF_INET6, SOCK_DGRAM | SOCK_CLOEXEC | SOCK_NONBLOCK, IPPROTO_UDP); in DnsParseBySocket()
70 if (socketFd < 0) { in DnsParseBySocket()
71 NETNATIVE_LOGE("socketFd create socket failed %{public}d", errno); in DnsParseBySocket()
74 if (!PollUdpDataTransfer::MakeUdpNonBlock(socketFd)) { in DnsParseBySocket()
76 close(socketFd); in DnsParseBySocket()
79 serverIdxOfSocket.emplace(std::piecewise_construct, std::forward_as_tuple(socketFd), in DnsParseBySocket()
80 std::forward_as_tuple(socketFd, std::move(clientSock), std::move(recvBuff))); in DnsParseBySocket()
81 SendRequest2Server(socketFd); in DnsParseBySocket()
130 SendRequest2Server(int32_t socketFd) SendRequest2Server() argument
163 SendDnsBack2Client(int32_t socketFd) SendDnsBack2Client() argument
[all...]
/foundation/communication/wifi/wifi/services/wifi_standard/wifi_framework/wifi_toolkit/net_helper/
H A Draw_socket.cpp74 int socketFd = socket(PF_PACKET, SOCK_DGRAM, htons(protocol)); in CreateSocket() local
75 if (socketFd < 0) { in CreateSocket()
80 if (SetNonBlock(socketFd)) { in CreateSocket()
82 (void)close(socketFd); in CreateSocket()
91 int ret = bind(socketFd, reinterpret_cast<struct sockaddr *>(&rawAddr), sizeof(rawAddr)); in CreateSocket()
94 (void)close(socketFd); in CreateSocket()
97 socketFd_ = socketFd; in CreateSocket()
/foundation/communication/dsoftbus/tests/adapter/fuzztest/softbussocketrecv_fuzzer/
H A Dsoftbussocketrecv_fuzzer.cpp68 int32_t socketFd = GetData<int32_t>(); in SoftBusSocketRecvFuzzTest() local
71 SoftBusSocketRecv(socketFd, &buf, len, flags); in SoftBusSocketRecvFuzzTest()
87 int32_t socketFd = GetData<int32_t>(); in SoftBusSocketRecvFromFuzzTest() local
93 SoftBusSocketRecvFrom(socketFd, &buf, len, flags, &fromAddr, &fromAddrLen); in SoftBusSocketRecvFromFuzzTest()
117 int32_t socketFd = GetData<int32_t>(); in SoftBusSocketSendFuzzTest() local
121 SoftBusSocketSend(socketFd, buf, len, flags); in SoftBusSocketSendFuzzTest()
145 int32_t socketFd = GetData<int32_t>(); in SoftBusSocketSendToFuzzTest() local
155 SoftBusSocketSendTo(socketFd, buf, len, flags, &toAddr, toAddrLen); in SoftBusSocketSendToFuzzTest()
/foundation/communication/netmanager_base/frameworks/native/netconnclient/src/
H A Dnet_handle.cpp46 int32_t NetHandle::BindSocket(int32_t socketFd) in BindSocket() argument
48 if (socketFd < 0) { in BindSocket()
49 NETMGR_LOG_E("socketFd is invalid"); in BindSocket()
52 return NetConnClient::GetInstance().BindSocket(socketFd, netId_); in BindSocket()
/foundation/communication/bluetooth_service/services/bluetooth/service/src/sock/
H A Dsocket_service.cpp103 int socketFd = SOCK_INVALID_FD; in Connect() local
105 if (socket->Connect(addr, uuid, securityFlag, socketFd) < 0) { in Connect()
106 socketFd = SOCK_INVALID_FD; in Connect()
115 return socketFd; in Connect()
122 int socketFd = SOCK_INVALID_FD; in Listen() local
124 if (socket->Listen(name, uuid, securityFlag, socketFd) < 0) { in Listen()
125 socketFd = SOCK_INVALID_FD; in Listen()
133 return socketFd; in Listen()
/foundation/communication/dsoftbus/tests/core/bus_center/mock_common/include/
H A Dnetwork_mock.h46 virtual int32_t SoftBusSocketCreate(int32_t domain, int32_t type, int32_t protocol, int32_t *socketFd) = 0;
48 int32_t socketFd, int32_t level, int32_t optName, const void *optVal, int32_t optLen) = 0;
49 virtual int32_t SoftBusSocketClose(int32_t socketFd) = 0;
50 virtual int32_t SoftBusSocketBind(int32_t socketFd, SoftBusSockAddr *addr, int32_t addrLen) = 0;
53 virtual int32_t SoftBusSocketRecv(int32_t socketFd, void *buf, uint32_t len, int32_t flags) = 0;
/foundation/communication/dsoftbus/sdk/transmission/trans_channel/udp/file/src/
H A Dfile_adapter.c138 int32_t socketFd = -1; in CreateServerSocket() local
140 socketFd = CreateServerSocketByIpv6(ip, 0); in CreateServerSocket()
142 socketFd = CreateServerSocketByIpv4(ip, 0); in CreateServerSocket()
145 if (socketFd < 0) { in CreateServerSocket()
152 ConnShutdownSocket(socketFd); in CreateServerSocket()
155 int32_t socketPort = interface->GetSockPort(socketFd); in CreateServerSocket()
158 ConnShutdownSocket(socketFd); in CreateServerSocket()
161 *fd = socketFd; in CreateServerSocket()
163 TRANS_LOGI(TRANS_FILE, "create socket success, fd=%{public}d, port=%{public}d", socketFd, socketPort); in CreateServerSocket()
/foundation/communication/bluetooth/frameworks/inner/src/
H A Dbluetooth_socket_inputstream.cpp24 InputStream::InputStream(int socketFd) : socketFd_(socketFd) in InputStream() argument
H A Dbluetooth_socket_outputstream.cpp35 OutputStream::OutputStream(int socketFd) : socketFd_(socketFd) in OutputStream() argument
/foundation/communication/netmanager_base/test/netconnmanager/unittest/net_conn_multi_test/
H A Dnet_handle_test.cpp44 int32_t socketFd = 1; in HWTEST_F() local
48 int32_t result = handler->BindSocket(socketFd); in HWTEST_F()
54 int32_t socketFd = -1; in HWTEST_F() local
58 int32_t result = handler->BindSocket(socketFd); in HWTEST_F()
/foundation/ability/ability_runtime/test/unittest/connect_server_manager_test/
H A Dconnect_server_manager_test.cpp67 uint32_t socketFd = 0; in HWTEST_F() local
68 connectServerManager.StartConnectServer(bundleName, socketFd, true); in HWTEST_F()
174 uint32_t socketFd = 0; in HWTEST_F() local
175 connectServerManager.StartConnectServer(bundleName, socketFd, true); in HWTEST_F()
192 uint32_t socketFd = 0; in HWTEST_F() local
193 connectServerManager.StartConnectServer(bundleName, socketFd, true); in HWTEST_F()
211 uint32_t socketFd = 0; in HWTEST_F() local
212 connectServerManager.StartConnectServer(bundleName, socketFd, true); in HWTEST_F()
/foundation/multimodalinput/input/intention/ipc/socket/include/
H A Dsocket_params.h43 AllocSocketPairReply(int32_t tokenType, int32_t socketFd);
48 int32_t socketFd { -1 };

Completed in 11 milliseconds

12345