Home
last modified time | relevance | path

Searched refs:clientAddr (Results 1 – 25 of 28) sorted by relevance

12

/ohos5.0/foundation/communication/dsoftbus/tests/core/transmission/trans_channel/tcp_direct/unittest/
H A Dtrans_tcp_direct_listener_test.cpp114 ConnectOption *clientAddr = (ConnectOption *)SoftBusMalloc(sizeof(ConnectOption)); variable
115 ASSERT_TRUE(clientAddr != nullptr);
121 int32_t ret = CreateSessionConnNode(module, fd, chanId, clientAddr);
134 ConnectOption *clientAddr = (ConnectOption *)SoftBusMalloc(sizeof(ConnectOption)); variable
135 ASSERT_TRUE(clientAddr != nullptr);
140 int32_t ret = TdcOnConnectEvent(module, cfd, clientAddr);
153 ConnectOption *clientAddr = (ConnectOption *)SoftBusMalloc(sizeof(ConnectOption)); variable
154 ASSERT_TRUE(clientAddr != nullptr);
159 int32_t ret = TdcOnConnectEvent(module, cfd, clientAddr);
/ohos5.0/base/startup/init/services/loopevent/socket/
H A Dle_socket.c169 struct sockaddr_un clientAddr; in AcceptPipeSocket_() local
170 socklen_t addrlen = sizeof(clientAddr); in AcceptPipeSocket_()
171 bzero(&clientAddr, addrlen); in AcceptPipeSocket_()
172 int fd = accept(serverFd, (struct sockaddr *)&clientAddr, &addrlen); in AcceptPipeSocket_()
174 LE_LOGV("AcceptPipeSocket client fd %d %s ", fd, clientAddr.sun_path); in AcceptPipeSocket_()
180 struct sockaddr_in clientAddr; in AcceptTcpSocket_() local
181 socklen_t addrlen = sizeof(clientAddr); in AcceptTcpSocket_()
182 bzero(&clientAddr, addrlen); in AcceptTcpSocket_()
183 int fd = accept(serverFd, (struct sockaddr *)&clientAddr, &addrlen); in AcceptTcpSocket_()
185 LE_LOGV("AcceptTcpSocket_ client: %s ", inet_ntoa(clientAddr.sin_addr)); in AcceptTcpSocket_()
/ohos5.0/foundation/communication/dsoftbus/core/connection/common/src/
H A Dsoftbus_tcp_socket.c407 static int32_t AcceptTcpClient(int32_t fd, ConnectOption *clientAddr, int32_t *cfd) in AcceptTcpClient() argument
409 CONN_CHECK_AND_RETURN_RET_LOGW(clientAddr != NULL, SOFTBUS_INVALID_PARAM, CONN_COMMON, in AcceptTcpClient()
419 clientAddr->type = CONNECT_TCP; in AcceptTcpClient()
420 clientAddr->socketOption.port = GetTcpSockPort(*cfd); in AcceptTcpClient()
421 clientAddr->socketOption.protocol = LNN_PROTOCOL_IP; in AcceptTcpClient()
424 clientAddr->socketOption.addr, sizeof(clientAddr->socketOption.addr)); in AcceptTcpClient()
432 clientAddr->socketOption.addr, sizeof(clientAddr->socketOption.addr)) == NULL) { in AcceptTcpClient()
H A Dsoftbus_base_listener.c849 ConnectOption clientAddr = { in ProcessSpecifiedServerAcceptEvent() local
859 … status = SOFTBUS_TEMP_FAILURE_RETRY(socketIf->AcceptClient(listenFd, &clientAddr, &clientFd)); in ProcessSpecifiedServerAcceptEvent()
865 ConvertAnonymizeIpAddress(animizedIp, IP_LEN, clientAddr.socketOption.addr, IP_LEN); in ProcessSpecifiedServerAcceptEvent()
870 listener->onConnectEvent(module, clientFd, &clientAddr); in ProcessSpecifiedServerAcceptEvent()
/ohos5.0/base/hiviewdfx/faultloggerd/test/unittest/services/
H A Dfaultlogger_daemon_test.cpp222 struct sockaddr_un clientAddr; in TestSecurityCheck() local
223 socklen_t clientAddrSize = static_cast<socklen_t>(sizeof(clientAddr)); in TestSecurityCheck()
225 reinterpret_cast<struct sockaddr *>(&clientAddr), &clientAddrSize)); in TestSecurityCheck()
295 struct sockaddr_un clientAddr; in TestCheckRequestCredential() local
296 socklen_t clientAddrSize = static_cast<socklen_t>(sizeof(clientAddr)); in TestCheckRequestCredential()
298 reinterpret_cast<struct sockaddr *>(&clientAddr), &clientAddrSize)); in TestCheckRequestCredential()
370 struct sockaddr_un clientAddr; in TestHandleExceptionRequest() local
371 socklen_t clientAddrSize = static_cast<socklen_t>(sizeof(clientAddr)); in TestHandleExceptionRequest()
373 reinterpret_cast<struct sockaddr *>(&clientAddr), &clientAddrSize)); in TestHandleExceptionRequest()
/ohos5.0/foundation/communication/dsoftbus/core/transmission/trans_channel/tcp_direct/src/
H A Dtrans_tcp_direct_listener.c154 …eateSessionConnNode(ListenerModule module, int fd, int32_t chanId, const ConnectOption *clientAddr) in CreateSessionConnNode() argument
170 conn->appInfo.peerData.port = clientAddr->socketOption.port; in CreateSessionConnNode()
180 …if (strcpy_s(conn->appInfo.peerData.addr, sizeof(conn->appInfo.peerData.addr), clientAddr->socketO… in CreateSessionConnNode()
186 conn->appInfo.protocol = clientAddr->socketOption.protocol; in CreateSessionConnNode()
210 static int32_t TdcOnConnectEvent(ListenerModule module, int cfd, const ConnectOption *clientAddr) in TdcOnConnectEvent() argument
212 if (cfd < 0 || clientAddr == NULL) { in TdcOnConnectEvent()
245 ret = CreateSessionConnNode(module, cfd, channelId, clientAddr); in TdcOnConnectEvent()
/ohos5.0/foundation/communication/dsoftbus/tests/core/authentication/unittest/
H A Dauth_tcp_connection_test.cpp180 ConnectOption clientAddr; variable
181 (void)memset_s(&clientAddr, sizeof(ConnectOption), 0, sizeof(ConnectOption));
182 int32_t ret = OnConnectEvent(module, cfd, &clientAddr);
185 ret = OnConnectEvent(module, cfd, &clientAddr);
/ohos5.0/foundation/communication/netmanager_base/services/netmanagernative/src/netsys/
H A Dfwmark_network.cpp136 struct sockaddr_un clientAddr; in SendMessage() local
137 socklen_t len = sizeof(clientAddr); in SendMessage()
139 … clientSockfd = accept(*serverSockfd, reinterpret_cast<struct sockaddr *>(&clientAddr), &len); in SendMessage()
/ohos5.0/foundation/communication/wifi/wifi/services/wifi_standard/wifi_framework/wifi_manage/wifi_p2p/
H A Dwifi_p2p_group_manager.cpp157 std::string clientAddr = client->GetDeviceAddress(); in GetNetworkIdFromClients() local
158 std::transform(clientAddr.begin(), clientAddr.end(), clientAddr.begin(), ::tolower); in GetNetworkIdFromClients()
159 if (clientAddr == deviceAddr) { in GetNetworkIdFromClients()
/ohos5.0/foundation/communication/dsoftbus/sdk/transmission/trans_channel/tcp_direct/src/
H A Dclient_trans_tcp_direct_listener.c55 const ConnectOption *clientAddr) in ClientTdcOnConnectEvent() argument
59 (void)clientAddr; in ClientTdcOnConnectEvent()
/ohos5.0/foundation/communication/netmanager_base/services/netmanagernative/src/netsys/dnsresolv/
H A Ddns_proxy_listen.cpp252 auto clientAddr = std::make_unique<AlignedSockAddr>(); in GetRequestAndTransmit() local
253 if (clientAddr == nullptr) { in GetRequestAndTransmit()
261 reinterpret_cast<sockaddr *>(&(clientAddr->sin)), &len); in GetRequestAndTransmit()
265 reinterpret_cast<sockaddr *>(&(clientAddr->sin6)), &len); in GetRequestAndTransmit()
275 DnsParseBySocket(recvBuff, clientAddr); in GetRequestAndTransmit()
H A Ddns_resolv_listen.cpp395 sockaddr_un clientAddr = {0}; in StartListen() local
396 socklen_t len = sizeof(clientAddr); in StartListen()
398 int clientSockFd = accept(serverSockFd_, (sockaddr *)&clientAddr, &len); in StartListen()
/ohos5.0/foundation/communication/dsoftbus/components/nstackx/nstackx_util/core/
H A Dnstackx_socket.c411 struct sockaddr_in clientAddr; in AcceptSocket() local
412 socklen_t addrLen = sizeof(clientAddr); in AcceptSocket()
413 (void)memset_s(&clientAddr, addrLen, 0, addrLen); in AcceptSocket()
427 clientSocket->sockfd = accept(serverSocket->sockfd, (struct sockaddr *)&clientAddr, &addrLen); in AcceptSocket()
438 clientSocket->dstAddr = clientAddr; in AcceptSocket()
/ohos5.0/foundation/communication/netmanager_base/services/netmanagernative/src/manager/
H A Dvpn_manager.cpp301 sockaddr_in clientAddr; in StartUnixSocketListen() local
302 socklen_t len = sizeof(clientAddr); in StartUnixSocketListen()
304 int32_t clientFd = accept(serverfd, reinterpret_cast<sockaddr *>(&clientAddr), &len); in StartUnixSocketListen()
/ohos5.0/base/hiviewdfx/faultloggerd/test/unittest/faultloggerd_client/
H A Dfaultloggerd_client_test.cpp353 struct sockaddr_un clientAddr; in DoServerProcess() local
354 socklen_t clientAddrSize = static_cast<socklen_t>(sizeof(clientAddr)); in DoServerProcess()
356 reinterpret_cast<struct sockaddr *>(&clientAddr), &clientAddrSize)); in DoServerProcess()
/ohos5.0/foundation/communication/dsoftbus/adapter/common/bus_center/network/
H A Dlnn_netlink_monitor.c190 … int32_t NetlinkOnConnectEvent(ListenerModule module, int32_t cfd, const ConnectOption *clientAddr) in NetlinkOnConnectEvent() argument
194 (void)clientAddr; in NetlinkOnConnectEvent()
/ohos5.0/foundation/communication/dsoftbus/core/connection/tcp/src/
H A Dsoftbus_tcp_connect_manager.c71 …tic int32_t TcpOnConnectEvent(ListenerModule module, int32_t cfd, const ConnectOption *clientAddr);
216 …atic int32_t TcpOnConnectEvent(ListenerModule module, int32_t cfd, const ConnectOption *clientAddr) in TcpOnConnectEvent() argument
218 if (cfd < 0 || clientAddr == NULL) { in TcpOnConnectEvent()
244 clientAddr->socketOption.addr) != EOK) { in TcpOnConnectEvent()
247 tcpConnInfoNode->info.socketInfo.port = clientAddr->socketOption.port; in TcpOnConnectEvent()
250 tcpConnInfoNode->info.socketInfo.protocol = clientAddr->socketOption.protocol; in TcpOnConnectEvent()
/ohos5.0/foundation/communication/dsoftbus/core/connection/interface/
H A Dsoftbus_base_listener.h45 int32_t (*onConnectEvent)(ListenerModule module, int32_t cfd, const ConnectOption *clientAddr);
H A Dsoftbus_socket.h63 int32_t (*AcceptClient)(int32_t fd, ConnectOption *clientAddr, int32_t *cfd);
/ohos5.0/foundation/communication/dsoftbus/tests/core/connection/common/fuzztest/connectioncommon_fuzzer/
H A Dconnectioncommon_fuzzer.cpp54 static int32_t ConnectEvent(ListenerModule module, int32_t cfd, const ConnectOption *clientAddr) in ConnectEvent() argument
/ohos5.0/foundation/communication/dsoftbus/core/authentication/src/
H A Dauth_tcp_connection.c66 …2_t __attribute__((weak)) RouteBuildServerAuthManager(int32_t cfd, const ConnectOption *clientAddr) in RouteBuildServerAuthManager() argument
69 (void)clientAddr; in RouteBuildServerAuthManager()
271 static int32_t OnConnectEvent(ListenerModule module, int32_t cfd, const ConnectOption *clientAddr) in OnConnectEvent() argument
299 if (RouteBuildServerAuthManager(cfd, clientAddr) != SOFTBUS_OK) { in OnConnectEvent()
/ohos5.0/foundation/communication/dsoftbus/core/bus_center/lnn/lane_hub/lane_manager/src/
H A Dlnn_lane_reliability.c222 …t32_t LaneDetectOnConnectEvent(ListenerModule module, int32_t cfd, const ConnectOption *clientAddr) in LaneDetectOnConnectEvent() argument
226 (void)clientAddr; in LaneDetectOnConnectEvent()
/ohos5.0/foundation/communication/dsoftbus/tests/adapter/unittest/
H A Dsoftbus_socket_test.cpp510 SoftBusSockAddrIn clientAddr; variable
511 int32_t ret = SoftBusSocketGetLocalName(socketFd, (SoftBusSockAddr *)&clientAddr);
561 SoftBusSockAddrIn clientAddr; variable
562 ret = SoftBusSocketGetLocalName(socketFd, (SoftBusSockAddr *)&clientAddr);
579 SoftBusSockAddrIn clientAddr; variable
580 ret = SoftBusSocketGetLocalName(socketFd, (SoftBusSockAddr *)&clientAddr);
/ohos5.0/base/hiviewdfx/faultloggerd/services/
H A Dfault_logger_daemon.cpp167 struct sockaddr_un clientAddr; in HandleAccept() local
168 socklen_t clientAddrSize = static_cast<socklen_t>(sizeof(clientAddr)); in HandleAccept()
171 reinterpret_cast<struct sockaddr *>(&clientAddr), &clientAddrSize)); in HandleAccept()
/ohos5.0/foundation/communication/dsoftbus/components/nstackx/fillp/src/fillp_lib/include/fillp/
H A Dfillp.h406 IN FILLP_CONST struct sockaddr_in6 *clientAddr, IN FILLP_CONST FillpCookieContent *stateCookie);

12