/foundation/communication/dsoftbus/components/nstackx/fillp/src/public/include/ |
H A D | socket_common.h | 25 void EpollEventCallback(struct FtSocket *sock, FILLP_UINT32 upEvent); 45 void SockFreeSocket(struct FtSocket *sock); 46 struct FtSocket *SockAllocSocket(void); 47 struct FtSocket *SockGetSocket(FILLP_INT sockIndex); 48 FILLP_BOOL SockCanSendData(FILLP_CONST struct FtSocket *sock); 49 FILLP_BOOL SockCanRecvData(struct FtSocket *sock); 50 struct FtSocket *SockApiGetAndCheck(int sockIdx); 51 FILLP_INT SockUpdatePktDataOpt(struct FtSocket *sock, FILLP_UINT16 addFlag, FILLP_UINT16 delFlag);
|
H A D | sockets.h | 90 struct FtSocket { struct 151 static __inline struct FtSocket *SockEntryListenSocket(struct HlistNode *node) in SockEntryListenSocket() 153 return (struct FtSocket *)((char *)(node) - (uintptr_t)(&(((struct FtSocket *)0)->listenNode))); in SockEntryListenSocket() 202 struct FtSocket **sockPool; 226 /* Set the blocking status of FtSocket 228 The flag (which contains the socket options is in FtSocket and NOT in netconn CB) 229 is in FtSocket structure, this is because: Application can set the socket to 230 nonblock just after calling FtSocket (before ft_connet/FtAccept), but the 233 void SockSetNonblocking(struct FtSocket *soc [all...] |
H A D | spunge.h | 154 void SpungeEpollEventCallback(struct FtSocket *sock, FILLP_INT event, FILLP_INT count); 155 void SpungeEpollAppRecvOne(struct FtSocket *sock); 157 void SockSetOsSocket(struct FtSocket *ftSock, struct SockOsSocket *osSock);
|
H A D | opt.h | 36 struct FtSocket *ftSock;
|
/foundation/communication/dsoftbus/components/nstackx/fillp/src/public/src/ |
H A D | socket_common.c | 26 struct FtSocket *sock; in EpollUpdateEpEvent() 52 void EpollEventCallback(struct FtSocket *sock, FILLP_UINT32 upEvent) in EpollEventCallback() 162 void SockFreeSocket(struct FtSocket *sock) in SockFreeSocket() 173 struct FtSocket *sock; in SpungeInitSocket() 222 struct FtSocket *sock = FILLP_NULL_PTR; in SpungeAllocFtSock() 228 sock = (struct FtSocket *)SpungeAlloc(1, sizeof(struct FtSocket), SPUNGE_ALLOC_TYPE_CALLOC); in SpungeAllocFtSock() 258 struct FtSocket *SockAllocSocket(void) in SockAllocSocket() 260 struct FtSocket *sock = FILLP_NULL_PTR; in SockAllocSocket() 277 struct FtSocket *SockGetSocke [all...] |
H A D | spunge_message.c | 78 struct FtSocket *sock = (struct FtSocket *)msg->sock; in SpungeHandleMsgAllocSock() 120 struct FtSocket *sock = FILLP_NULL_PTR; in SpungeHandleMsgFreeSockEagain() 128 sock = (struct FtSocket *)value; in SpungeHandleMsgFreeSockEagain() 139 struct FtSocket **pSock, struct SockOsSocket **pOsSock) in SpungeListenMsgCheckState() 141 struct FtSocket *sock = FILLP_NULL_PTR; in SpungeListenMsgCheckState() 151 sock = (struct FtSocket *)value; in SpungeListenMsgCheckState() 186 struct FtSocket *sock = FILLP_NULL_PTR; in SpungeHandleMsgListen() 230 static FILLP_INT SpungeConnMsgCheckSockState(struct FtSocket *sock, FILLP_INT connState) in SpungeConnMsgCheckSockState() 254 static FILLP_INT SpungeConnMsgGetSock(void *value, struct FtSocket **pSoc [all...] |
H A D | spunge.c | 35 void SpungeEpollAppRecvOne(struct FtSocket *sock) in SpungeEpollAppRecvOne() 40 void SpungeEpollEventCallback(struct FtSocket *sock, FILLP_INT event, FILLP_INT count) in SpungeEpollEventCallback() 64 void SockSetOsSocket(struct FtSocket *ftSock, struct SockOsSocket *osSock) in SockSetOsSocket()
|
/foundation/communication/dsoftbus/components/nstackx/fillp/src/fillp_lib/src/ |
H A D | spunge_stack.c | 57 static void SpungeEpollFreeResource(struct FtSocket *sock) in SpungeEpollFreeResource() 71 /* Scan the epoll instance list to which this FtSocket is associated with */ in SpungeEpollFreeResource() 77 struct FtSocket *epollSock = FILLP_NULL_PTR; in SpungeEpollFreeResource() 106 void SpungeFreeAcceptBox(struct FtSocket *sock) in SpungeFreeAcceptBox() 126 void SpungeIncFreeCntPostEagain(struct FtSocket *sock) in SpungeIncFreeCntPostEagain() 145 struct FtSocket *sock = FILLP_NULL_PTR; in RecursiveRbTree() 192 void SpungEpollClose(struct FtSocket *sock) in SpungEpollClose() 237 static void SpungeCloseCBSocket(struct FtSocket *sock) in SpungeCloseCBSocket() 252 void SpungeFreeSock(struct FtSocket *sock) in SpungeFreeSock() 307 struct FtSocket *soc in SpungeShutdownSock() [all...] |
H A D | sysio_udp.c | 137 struct FtSocket *sock = (struct FtSocket *)argSock; in SysioListenUdp() 211 struct FtSocket *sock = (struct FtSocket *)argSock; in SysioFreeSocketUdp() 491 struct FtSocket *sock = FILLP_NULL_PTR; in SysioGetListenSocketByOssock() 537 struct FtSocket *sock = (struct FtSocket *)argSock; in SysioConnectedUdp()
|
/foundation/communication/dsoftbus/components/nstackx/fillp/src/app_lib/src/ |
H A D | epoll_app.c | 89 static void EpollAddToSockWaitList(struct FtSocket *sock, struct EpItem *epi) in EpollAddToSockWaitList() 102 struct FtSocket *sock, in EpollCtlTriggleEvent() 147 struct FtSocket *sock, in EpModify() 223 struct FtSocket *sock = FILLP_NULL_PTR; in EpRemove() 326 struct FtSocket *sock, in EpPoll() 452 struct FtSocket *sock = SockGetSocket(fd); in EpInsert() 492 static struct FtSocket *SpungeGetEpollSocketByFd(FILLP_INT epFd) in SpungeGetEpollSocketByFd() 494 struct FtSocket *epollSock = SockGetSocket(epFd); in SpungeGetEpollSocketByFd() 526 static FILLP_INT SpungeEpollCtlCheckSockValid(struct FtSocket *epollSock, struct FtSocket *soc [all...] |
H A D | socket_opt.c | 26 static FILLP_INT SockGetOptSendCache(struct FtSocket *sock, void *optVal, FILLP_INT *optLen) in SockGetOptSendCache() 50 static FILLP_INT SockGetSockOptFillp(struct FtSocket *sock, FILLP_INT optName, void *optVal, FILLP_INT *optLen) in SockGetSockOptFillp() 103 struct FtSocket *sock = SockApiGetAndCheck(sockIndex); in SockGetSockOpt() 156 static FILLP_INT SockSetOptTimestamp(struct FtSocket *sock, FILLP_CONST void *optVal, socklen_t optLen) in SockSetOptTimestamp() 177 static FILLP_INT SockSetOptLinger(struct FtSocket *sock, FILLP_CONST void *optVal, socklen_t optLen) in SockSetOptLinger() 194 static FILLP_INT SockSetFcAlg(struct FtSocket *sock, FILLP_UINT32 alg) in SockSetFcAlg() 234 static FILLP_INT SockSetOptFcAlg(struct FtSocket *sock, FILLP_CONST void *optVal, socklen_t optLen) in SockSetOptFcAlg() 252 static FILLP_INT SockSetOptDirectlySend(struct FtSocket *sock, FILLP_CONST void *optVal, socklen_t optLen) in SockSetOptDirectlySend() 264 static FILLP_INT SockSetSockOptFillp(struct FtSocket *sock, in SockSetSockOptFillp() 295 struct FtSocket *soc in SockSetSockOpt() [all...] |
H A D | fillp_stack_app_config.c | 22 static FILLP_INT FillpValidateSockAllocStateWithRdwaitAcquired(struct FtSocket *sock, FILLP_INT sockIndex) in FillpValidateSockAllocStateWithRdwaitAcquired() 35 struct FtSocket *sock = FILLP_NULL_PTR; in FtGetRightAppResourceByIndex() 128 struct FtSocket *sock = FILLP_NULL_PTR; in FtAppInitConfigSet() 216 struct FtSocket *sock = FILLP_NULL_PTR; in FtAppInitConfigGet() 245 static FILLP_INT32 FtInnerValidateAppConfigSet(FILLP_UINT32 name, struct FtSocket *sock, FILLP_INT sockIndex) in FtInnerValidateAppConfigSet() 276 struct FtSocket *sock = FILLP_NULL_PTR; in FtSetConfigApp() 330 static FILLP_INT32 FtCheckSockValid(struct FtSocket *sock) in FtCheckSockValid() 347 static FILLP_INT32 FtGetAppFcPeriodRecvRate(struct FtSocket *sock, FILLP_UINT32 *value) in FtGetAppFcPeriodRecvRate() 361 static FILLP_INT32 FtGetAppFcPeriodRecvRateBps(struct FtSocket *sock, FILLP_ULLONG *value) in FtGetAppFcPeriodRecvRateBps() 374 static FILLP_INT32 FtGetAppFcPeriodRecvPktLost(struct FtSocket *soc [all...] |
H A D | socket_app.c | 25 static void SockSetError(struct FtSocket *sock, FillpErrorType err) in SockSetError() 108 struct FtSocket *sock = FILLP_NULL_PTR; in SockSocket() 277 static struct FtSocket *SocketGetForDataTrans(FILLP_INT sockIndex, FILLP_INT flags) in SocketGetForDataTrans() 279 struct FtSocket *sock = FILLP_NULL_PTR; in SocketGetForDataTrans() 312 static struct FillpPcbItem *SockSendReqFpcbItemWithSem(struct FtSocket *sock, FILLP_INT flags) in SockSendReqFpcbItemWithSem() 349 static struct FillpPcbItem *SockSendReqFpcbItemWithoutSem(struct FtSocket *sock, FILLP_INT flags) in SockSendReqFpcbItemWithoutSem() 377 static struct FillpPcbItem *SockSendReqFpcbItem(struct FtSocket *sock, FILLP_INT flags) in SockSendReqFpcbItem() 391 static void SockSendmsgPushOrSendItem(FILLP_CONST struct FtSocket *sock, in SockSendmsgPushOrSendItem() 408 static void SockSendMsgSetItem(struct FillpPcbItem *item, FILLP_CONST struct FtSocket *sock, in SockSendMsgSetItem() 431 static void SockItemSetFrameInfo(struct FillpPcbItem *item, FILLP_CONST struct FtSocket *soc [all...] |
H A D | spunge_app.c | 24 static FILLP_INT SpungeInitSocket(struct FtSocket *sock) in SpungeInitSocket() 84 struct FtSocket *SpungeAllocSock(FILLP_INT allocType) in SpungeAllocSock() 86 struct FtSocket *sock = FILLP_NULL_PTR; in SpungeAllocSock() 114 void SpungeDelEpInstFromFtSocket(struct FtSocket *sock, FILLP_INT epFd) in SpungeDelEpInstFromFtSocket()
|
H A D | fillp_stack_app_config_in.c | 237 struct FtSocket *sock = FILLP_NULL_PTR; in FtAppSetKeepAliveTime() 339 struct FtSocket *sock = FILLP_NULL_PTR; in FtAppConfigSetSendCache() 366 struct FtSocket *sock = FILLP_NULL_PTR; in FtAppConfigSetRecvCache() 430 struct FtSocket *sock = FILLP_NULL_PTR; in FtAppConfigSetOppositeSetRate() 461 struct FtSocket *sock = FILLP_NULL_PTR; in FtAppConfigSetPktSize() 499 struct FtSocket *sock) in FtAppConfigSetSendBufSize() 534 struct FtSocket *sock) in FtAppConfigSetRecvBufSize() 571 struct FtSocket *sock = FILLP_NULL_PTR; in FtAppConfigSetSlowStart() 601 struct FtSocket *sock = SockGetSocket(sockIndex); in FtAppConfigSetMaxRate() 656 struct FtSocket *soc in FtAppEnlargePackInterval() [all...] |
H A D | fillp_dfx.c | 277 static void FillpDfxSockQosNotify(const struct FtSocket *sock) in FillpDfxSockQosNotify() 311 void FillpDfxSockLinkAndQosNotify(const struct FtSocket *sock, FillpDfxLinkEvtType evtType) in FillpDfxSockLinkAndQosNotify() 489 struct FtSocket *sock = SockApiGetAndCheck(sockIndex); in FillpDumpShowSockResource() 522 static FILLP_INT32 DoShowSockList(FILLP_CONST struct FtSocket *sock, FILLP_CHAR *data, FILLP_UINT32 *len) in DoShowSockList() 560 struct FtSocket *sock = FILLP_NULL_PTR; in FillpDumpShowSockList() 596 static FILLP_INT DoShowSockQos(FILLP_CONST struct FtSocket *sock, FILLP_CHAR *data, FILLP_UINT32 *len) in DoShowSockQos() 625 static struct FtSocket *FillpDfxGetSock(FILLP_INT sockIndex, void *softObj, FillpDfxDumpFunc dump, in FillpDfxGetSock() 628 struct FtSocket *sock = SockApiGetAndCheck(sockIndex); in FillpDfxGetSock() 641 typedef FILLP_INT (*FillpDumpSockDataShowCb)(FILLP_CONST struct FtSocket *sock, FILLP_CHAR *data, FILLP_UINT32 *len); 648 struct FtSocket *soc in FillpDumpShowSockData() [all...] |
/foundation/communication/dsoftbus/components/nstackx/fillp/src/app_lib/include/ |
H A D | spunge_app.h | 35 struct FtSocket *SpungeAllocSock(FILLP_INT allocType); 36 void SpungeDelEpInstFromFtSocket(struct FtSocket *sock, FILLP_INT epFd);
|
H A D | fillp_dfx.h | 43 void FillpDfxSockLinkAndQosNotify(const struct FtSocket *sock, FillpDfxLinkEvtType evtType);
|
H A D | fillp_stack_app_config_in.h | 40 IN struct GlobalAppResource *resource, IN FILLP_INT sockIndex, IN struct FtSocket *sock);
|
/foundation/communication/dsoftbus/components/nstackx/fillp/src/fillp_lib/include/ |
H A D | spunge_core.h | 74 void SpungeFreeAcceptBox(struct FtSocket *sock); 75 void SpungeIncFreeCntPostEagain(struct FtSocket *sock); 77 void SpungeFreeSock(struct FtSocket *sock);
|
H A D | net.h | 114 void NetconnSetSock(struct FtSocket *sock, struct FtNetconn *conn); 117 void FillpHandleConnConfirmAckInput(struct FtSocket *sock, struct FtNetconn *conn, 120 void FillpInitNewconnBySock(struct FtNetconn *conn, FILLP_CONST struct FtSocket *sock);
|
H A D | spunge_stack.h | 40 void SpungEpollClose(struct FtSocket *sock);
|
/foundation/communication/dsoftbus/components/nstackx/fillp/src/fillp_lib/src/fillp/ |
H A D | fillp_conn.c | 33 static void FillpConnReqInputTrace(FILLP_CONST struct FillpPcb *pcb, FILLP_CONST struct FtSocket *sock, in FillpConnReqInputTrace() 63 static FILLP_INT FillpConnReqStateCheck(struct FillpPcb *pcb, FILLP_CONST struct FtSocket *sock) in FillpConnReqStateCheck() 97 struct FtSocket *sock = FILLP_GET_SOCKET(pcb); in FillpConnReqInput() 403 static void FillpConnReqAckTrace(struct FtSocket *sock, struct FillpPktHead *pktHdr) in FillpConnReqAckTrace() 430 struct FtSocket *sock = FILLP_GET_SOCKET(pcb); in FillpConnReqAckInput() 494 struct FtSocket *sock = (struct FtSocket *)newConn->sock; in FillpInitNewPcbByNewConn() 548 void FillpInitNewconnBySock(struct FtNetconn *conn, FILLP_CONST struct FtSocket *sock) in FillpInitNewconnBySock() 568 struct FtSocket *sock = (struct FtSocket *)con in FillpInitNewConnByConfirm() [all...] |
H A D | fillp_input.c | 35 static void FillpCalRecvJitter(struct FtSocket *sock, FILLP_LLONG arrival, FILLP_LLONG receiveTransmit) in FillpCalRecvJitter() 63 (((struct FtSocket *)conn->sock)->resConf.common.enlargePackIntervalFlag == FILLP_TRUE && in FillpChangePackInteval() 78 struct FtSocket *sock = FILLP_GET_SOCKET(pcb); in FillpProcessDataOptions() 333 static void FillpNackInputTrace(FILLP_CONST struct FtSocket *sock, FILLP_CONST struct FillpPktNack *nack, in FillpNackInputTrace() 435 struct FtSocket *ftSock = (struct FtSocket *)FILLP_GET_CONN(pcb)->sock; in FillpNackInput() 512 struct FtSocket *ftSock; in FillpPackInputSendMsgTrace() 597 struct FtSocket *ftSock = FILLP_NULL_PTR; in FillpHandleAdhocpackFlag() 653 static void FillpChangePackInterval(struct FillpPcb *pcb, FILLP_CONST struct FtSocket *sock, in FillpChangePackInterval() 678 struct FtSocket *soc in FillpHandlePackFlag() [all...] |
/foundation/communication/dsoftbus/components/nstackx/fillp/src/fillp_lib/include/fillp/ |
H A D | fillp_common.h | 37 #define FILLP_GET_SOCKET(pcb) ((struct FtSocket*)(FILLP_GET_CONN(pcb)->sock)) 54 void FillpBuildAndSendPack(struct FillpPcb *pcb, struct FtSocket *ftSock, struct FillpPktPack *pack,
|