Home
last modified time | relevance | path

Searched refs:sock (Results 76 - 93 of 93) sorted by relevance

1234

/foundation/communication/dsoftbus/components/nstackx/fillp/src/fillp_lib/src/fillp/
H A Dfillp_timer.c46 struct FtSocket *sock = FILLP_GET_SOCKET(pcb); in FillpCalFcAppStastics() local
54 if (appFcStastics->periodTimePassed < (FILLP_LLONG)(sock->resConf.common.fcStasticsInterval)) { in FillpCalFcAppStastics()
151 struct FtSocket *sock = FILLP_GET_SOCKET(pcb); in FillpPackTimerCb() local
170 (curTime - pack->packRttDetectTime) > (FILLP_LLONG)(sock->resConf.common.fcStasticsInterval)) { in FillpPackTimerCb()
H A Dfillp_flow_control_alg0.c211 struct FtSocket *sock = FILLP_GET_SOCKET(pcb); in FillpAlg0PackStateProcess() local
230 FILLP_LOGDTL("fillp_sock_id:%d fcState:%u wrong", sock->index, alg->fcState); in FillpAlg0PackStateProcess()
H A Dfillp_pcb.c646 struct FtSocket *sock = FILLP_GET_SOCKET(pcb); in FillpInitPcbTimeNode() local
664 pcb->keepAliveTimerNode.interval = FILLP_UTILS_MS2US(sock->resConf.common.keepAliveTime); in FillpInitPcbTimeNode()
755 FILLP_CONST struct FtSocket *sock = FILLP_GET_SOCKET(pcb); in FillpGetSockPackInterval() local
756 return sock->resConf.flowControl.packInterval; in FillpGetSockPackInterval()
/foundation/communication/netstack/frameworks/js/napi/socket/async_context/src/
H A Dlocal_socket_server_context.cpp34 void LocalSocketServerBaseContext::SetSocketFd(int sock) in SetSocketFd() argument
41 pManagerInfo->sockfd_ = sock; in SetSocketFd()
H A Dlocal_socket_context.cpp33 void LocalSocketBaseContext::SetSocketFd(int sock) in SetSocketFd() argument
39 pMgr->sockfd_ = sock; in SetSocketFd()
/foundation/communication/netstack/frameworks/js/napi/tls/src/
H A Dtls_socket.cpp147 static bool SetSockBlockFlag(int sock, bool noneBlock) in SetSockBlockFlag() argument
149 int flags = fcntl(sock, F_GETFL, 0); in SetSockBlockFlag()
151 flags = fcntl(sock, F_GETFL, 0); in SetSockBlockFlag()
154 NETSTACK_LOGE("set block flags failed, socket is %{public}d, errno is %{public}d", sock, errno); in SetSockBlockFlag()
165 int ret = fcntl(sock, F_SETFL, newFlags); in SetSockBlockFlag()
167 ret = fcntl(sock, F_SETFL, newFlags); in SetSockBlockFlag()
170 NETSTACK_LOGE("set block flags failed, socket is %{public}d, errno is %{public}d", sock, errno); in SetSockBlockFlag()
399 int sock = socket(family, SOCK_STREAM, IPPROTO_IP); in MakeIpSocket() local
400 if (sock < 0) { in MakeIpSocket()
406 sockFd_ = sock; in MakeIpSocket()
1176 TlsConnectToHost(int sock, const TLSConnectOptions &options, bool isExtSock) TlsConnectToHost() argument
[all...]
H A Dtls_socket_server.cpp645 int sock = socket(family, SOCK_STREAM, IPPROTO_IP); in MakeIpSocket() local
646 if (sock < 0) { in MakeIpSocket()
652 listenSocketFd_ = sock; in MakeIpSocket()
758 bool TLSSocketServer::Connection::TlsAcceptToHost(int sock, const TlsSocket::TLSConnectOptions &options) in TlsAcceptToHost() argument
774 socketFd_ = sock; in TlsAcceptToHost()
/foundation/communication/netstack/test/unittest/tls_test/client/
H A DTlsSocketTest.cpp430 int sock = socket(AF_INET, SOCK_STREAM, IPPROTO_TCP); in HWTEST_F() local
431 EXPECT_TRUE(sock > 0); in HWTEST_F()
440 int ret = connect(sock, reinterpret_cast<sockaddr *>(&addr4), sizeof(sockaddr_in)); in HWTEST_F()
443 TLSSocket testService(sock); in HWTEST_F()
/foundation/communication/netstack/test/unittest/tlssocket/client/
H A DTlsSocketTest.cpp430 int sock = socket(AF_INET, SOCK_STREAM, IPPROTO_TCP); in HWTEST_F() local
431 EXPECT_TRUE(sock > 0); in HWTEST_F()
440 int ret = connect(sock, reinterpret_cast<sockaddr *>(&addr4), sizeof(sockaddr_in)); in HWTEST_F()
443 TLSSocket testService(sock); in HWTEST_F()
/foundation/communication/netmanager_base/services/netmanagernative/src/netsys/
H A Dclat_utils.cpp344 int AddFilterAndBindPacketSocket(const int sock, const in6_addr *const addr, const int ifIndex) in AddFilterAndBindPacketSocket() argument
363 if (setsockopt(sock, SOL_SOCKET, SO_ATTACH_FILTER, &filterProg, sizeof(filterProg))) { in AddFilterAndBindPacketSocket()
375 if (bind(sock, reinterpret_cast<sockaddr *>(&sll), sizeof(sll))) { in AddFilterAndBindPacketSocket()
/foundation/communication/dsoftbus/components/nstackx/nstackx_ctrl/core/coap_discover/
H A Dcoap_client.c199 if (needBind && BindToDevice(ep->sock.fd, sockIpPtr) != NSTACKX_EOK) { in CoapGetContextEx()
337 if (iterator->sock.fd == fd) { in IsCoapCtxEndpointSocket()
/foundation/communication/netstack/frameworks/js/napi/socket/async_context/include/
H A Dlocal_socket_context.h55 virtual void SetSocketFd(int sock);
H A Dlocal_socket_server_context.h226 void SetSocketFd(int sock) override;
/foundation/communication/netstack/frameworks/js/napi/socket/socket_exec/include/
H A Dsocket_exec.h273 virtual bool OnMessage(int sock, void *data, size_t dataLen, sockaddr *addr, EventManager *manager) const = 0;
/foundation/communication/dsoftbus/components/nstackx/nstackx_core/dfile/include/
H A Dnstackx_dfile_session.h185 int32_t CheckFdSetSize(SocketDesc sock);
/foundation/communication/netstack/interfaces/innerkits/tls_socket/include/
H A Dtls_socket_server.h233 * @param sock socket for establishing encrypted connection
237 bool TlsAcceptToHost(int sock, const TlsSocket::TLSConnectOptions &options);
H A Dtls_socket.h449 * @param sock socket for establishing encrypted connection
454 bool TlsConnectToHost(int sock, const TLSConnectOptions &options, bool isExtSock);
/foundation/communication/dhcp/services/dhcp_server/src/
H A Ddhcp_s_server.cpp256 int ReceiveDhcpMessage(int sock, PDhcpMsgInfo msgInfo) in ReceiveDhcpMessage() argument
262 FD_SET(sock, &recvFd); in ReceiveDhcpMessage()
265 int ret = select(sock + 1, &recvFd, nullptr, nullptr, &tmt); in ReceiveDhcpMessage()
273 if (!FD_ISSET(sock, &recvFd)) { in ReceiveDhcpMessage()
281 int rsize = recvfrom(sock, recvBuffer, RECV_BUFFER_SIZE, 0, (struct sockaddr *)srcAddrIn, (socklen_t *)&ssize); in ReceiveDhcpMessage()

Completed in 23 milliseconds

1234