//ASYNC_WITH_RSP, request is not void private unsafe void _t_protocol_name_4Handler(t_protocol_typeArgs args) { using (var rsp = new t_protocol_responseWriter(asyncRspHeaderLength: TrinityProtocol.AsyncWithRspAdditionalHeaderLength)) { Exception exception = null; var req = new t_protocol_requestReader(args.Buffer, args.Offset + TrinityProtocol.AsyncWithRspAdditionalHeaderLength); try { t_protocol_nameHandler(req, rsp); } catch (Exception ex) { exception = ex; } int token = *(int *)(args.Buffer + args.Offset); int from = *(int *)(args.Buffer + args.Offset + sizeof(int)); _t_protocol_name_CheckError(exception, token, from); *(int *)(rsp.buffer) = TrinityProtocol.TrinityMsgHeader + TrinityProtocol.AsyncWithRspAdditionalHeaderLength + rsp.Length; *(TrinityMessageType *)(rsp.buffer + TrinityProtocol.MsgTypeOffset) = TrinityMessageType.ASYNC_WITH_RSP; *(ushort *)(rsp.buffer + TrinityProtocol.MsgIdOffset) = (ushort)global::t_Namespace.TSL.t_base_class_name.t_comm_name.t_protocol_typeMessageType.t_protocol_name__Response; *(int *)(rsp.m_ptr - TrinityProtocol.AsyncWithRspAdditionalHeaderLength) = token; *(int *)(rsp.m_ptr - TrinityProtocol.AsyncWithRspAdditionalHeaderLength + sizeof(int)) = 0; IF("node->type() == PGT_MODULE"); this.SendMessage(m_memorycloud[from], rsp.buffer, rsp.Length + TrinityProtocol.MsgHeader + TrinityProtocol.AsyncWithRspAdditionalHeaderLength); ELSE(); Global.CloudStorage[from].SendMessage(rsp.buffer, rsp.Length + TrinityProtocol.MsgHeader + TrinityProtocol.AsyncWithRspAdditionalHeaderLength); END(); } }
public abstract void t_protocol_nameHandler(t_protocol_requestReader request);
public abstract void t_protocol_name_2Handler(t_protocol_requestReader request, t_protocol_responseWriter response);