Lines Matching refs:hSession
64 virtual void AttachChannel(HSession hSession, const uint32_t channelId)
67 virtual void DeatchChannel(HSession hSession, const uint32_t channelId)
70 virtual void NotifyInstanceSessionFree(HSession hSession, bool freeOrClear)
73 virtual bool RedirectToTask(HTaskInfo hTaskInfo, HSession hSession, const uint32_t channelId,
94 int OnRead(HSession hSession, uint8_t *bufPtr, const int bufLen);
97 int SendByProtocol(HSession hSession, uint8_t *bufPtr, const int bufLen, bool echo = false);
99 virtual int FetchIOBuf(HSession hSession, uint8_t *ioBuf, int read);
101 HTaskInfo AdminTask(const uint8_t op, HSession hSession, const uint32_t channelId, HTaskInfo hInput);
102 bool DispatchTaskData(HSession hSession, const uint32_t channelId, const uint16_t command, uint8_t *payload,
104 void EnumUSBDeviceRegister(void (*pCallBack)(HSession hSession));
106 using UartKickoutZombie = const std::function<void(HSession hSession)>;
109 void ClearOwnTasks(HSession hSession, const uint32_t channelIDInput);
110 virtual bool FetchCommand(HSession hSession, const uint32_t channelId, const uint16_t command, uint8_t *payload,
194 int DecryptPayload(HSession hSession, PayloadHead *payloadHeadBe, uint8_t *encBuf);
195 bool DispatchMainThreadCommand(HSession hSession, const CtrlStruct *ctrl);
196 bool DispatchSessionThreadCommand(HSession hSession, const uint8_t *baseBuf,
200 void ReChildLoopForSessionClear(HSession hSession);
201 void FreeSessionContinue(HSession hSession);
205 int MallocSessionByConnectType(HSession hSession);
206 void FreeSessionByConnectType(HSession hSession);
207 bool WorkThreadStartSession(HSession hSession);
208 void WorkThreadInitSession(HSession hSession, SessionHandShake &handshake);