Home
last modified time | relevance | path

Searched refs:sfd (Results 1 – 3 of 3) sorted by relevance

/test/xts/acts/commonlibrary/thirdparty/musl/entry/src/main/cpp/
Dsocketndk.cpp152 int sfd = socket(AF_INET, SOCK_STREAM, PARAM_0); in Setsockopt() local
155 int setval = setsockopt(sfd, SOL_SOCKET, SO_REUSEADDR, &reuse, sizeof(reuse)); in Setsockopt()
278 int sfd = PARAM_0; in Bind() local
280 sfd = socket(AF_UNIX, SOCK_STREAM, PARAM_0); in Bind()
284 int ret = bind(sfd, (struct sockaddr *)&myAddr, sizeof(struct sockaddr_un)); in Bind()
/test/xts/acts/communication_lite/lwip_posix/src/
DActsLwipTest.cpp542 int sfd = socket(AF_INET, SOCK_DGRAM, 0); variable
543 ASSERT_NE(-1, sfd);
547 int ret = ::bind(sfd, (struct sockaddr*)&srvAddr, sizeof(srvAddr));
556 …ret = sendto(sfd, buf, strlen(g_udpMsg), 0, (struct sockaddr*)&clnAddr, (socklen_t)sizeof(clnAddr)…
560 ret = recvfrom(sfd, buf, sizeof(buf), 0, (struct sockaddr*)&clnAddr, &clnAddrLen);
577 ret = sendmsg(sfd, &msg, 0);
580 ret = close(sfd);
/test/xts/acts/kernel_lite/net_posix/src/
DActsNetTest.cpp767 int sfd = socket(AF_INET, SOCK_DGRAM, 0); variable
768 ASSERT_NE(-1, sfd);
772 int ret = ::bind(sfd, (struct sockaddr*)&srvAddr, sizeof(srvAddr));
782 …ret = sendto(sfd, buf, strlen(g_udpMsg), 0, (struct sockaddr*)&clnAddr, (socklen_t)sizeof(clnAddr)…
787 ret = recvfrom(sfd, buf, sizeof(buf), 0, (struct sockaddr*)&clnAddr, &clnAddrLen);
805 ret = sendmsg(sfd, &msg, 0);
808 ret = close(sfd);