コード例 #1
0
 protected override void RegisterMessageHandler()
 {
     FOREACH();
     META("if($t_protocol->is_http_protocol()){continue;}");
     IF("$t_protocol->is_asyn_req_rsp_protocol()");
     {
         IF("node->type() == PGT_MODULE");
         MessageRegistry.RegisterMessageHandler((ushort)(this.t_protocol_typeIdOffset + (ushort)global::t_Namespace.TSL.t_base_class_name.t_comm_name.t_protocol_typeMessageType.t_protocol_name), _t_protocol_name_4Handler);
         MessageRegistry.RegisterMessageHandler((ushort)(this.t_protocol_typeIdOffset + (ushort)global::t_Namespace.TSL.t_base_class_name.t_comm_name.t_protocol_typeMessageType.t_protocol_name__Response), _t_protocol_name_ResponseHandler);
         ELSE();
         MessageRegistry.RegisterMessageHandler((ushort)(ushort)global::t_Namespace.TSL.t_base_class_name.t_comm_name.t_protocol_typeMessageType.t_protocol_name, _t_protocol_name_4Handler);
         MessageRegistry.RegisterMessageHandler((ushort)(ushort)global::t_Namespace.TSL.t_base_class_name.t_comm_name.t_protocol_typeMessageType.t_protocol_name__Response, _t_protocol_name_ResponseHandler);
         END();
     }
     ELSE();
     {
         IF("node->type() == PGT_MODULE");
         MessageRegistry.RegisterMessageHandler((ushort)(this.t_protocol_typeIdOffset + (ushort)global::t_Namespace.TSL.t_base_class_name.t_comm_name.t_protocol_typeMessageType.t_protocol_name), _t_protocol_name_4Handler);
         ELSE();
         MessageRegistry.RegisterMessageHandler((ushort)(ushort)global::t_Namespace.TSL.t_base_class_name.t_comm_name.t_protocol_typeMessageType.t_protocol_name, _t_protocol_name_4Handler);
         END();
     }
     END(); //IF
     END(); //FOREACH
 }
コード例 #2
0
 protected override void RegisterMessageHandler()
 {
     base.RegisterMessageHandler();
     MessageRegistry.RegisterMessageHandler((ushort)TSL.CommunicationModule.TrinityClientModule.SynReqMessageType.PostResponse, PostResponse_impl);
     MessageRegistry.RegisterMessageHandler((ushort)TSL.CommunicationModule.TrinityClientModule.SynReqRspMessageType.PollEvents, PollEvents_impl);
     MessageRegistry.RegisterMessageHandler((ushort)TSL.CommunicationModule.TrinityClientModule.SynReqMessageType.RedirectMessage, RedirectMessage_impl);
     MessageRegistry.RegisterMessageHandler((ushort)TSL.CommunicationModule.TrinityClientModule.SynReqRspMessageType.RedirectMessageWithResponse, RedirectMessageWithResponse_impl);
 }
コード例 #3
0
        protected override void RegisterMessageHandler()
        {
            {
                MessageRegistry.RegisterMessageHandler((ushort)(this.AsynReqRspIdOffset + (ushort)global::Trinity.Client.TestProtocols.TSL.CommunicationModule.TripleServer.AsynReqRspMessageType.StreamTriplesAsync), _StreamTriplesAsyncHandler);
                MessageRegistry.RegisterMessageHandler((ushort)(this.AsynReqRspIdOffset + (ushort)global::Trinity.Client.TestProtocols.TSL.CommunicationModule.TripleServer.AsynReqRspMessageType.StreamTriplesAsync__Response), _StreamTriplesAsync_ResponseHandler);
            }

            {
                MessageRegistry.RegisterMessageHandler((ushort)(this.AsynReqRspIdOffset + (ushort)global::Trinity.Client.TestProtocols.TSL.CommunicationModule.TripleServer.AsynReqRspMessageType.PostTriplesToServer), _PostTriplesToServerHandler);
                MessageRegistry.RegisterMessageHandler((ushort)(this.AsynReqRspIdOffset + (ushort)global::Trinity.Client.TestProtocols.TSL.CommunicationModule.TripleServer.AsynReqRspMessageType.PostTriplesToServer__Response), _PostTriplesToServer_ResponseHandler);
            }
        }
コード例 #4
0
        protected override void RegisterMessageHandler()
        {
            {
                MessageRegistry.RegisterMessageHandler((ushort)(this.SynReqIdOffset + (ushort)global::InKnowWorks.TripleStoreMemoryCloud.Protocols.TSL.TSL.CommunicationModule.TripleStoreMemoryCloudServiceModule.SynReqMessageType.Ping), _PingHandler);
            }

            {
                MessageRegistry.RegisterMessageHandler((ushort)(this.SynReqRspIdOffset + (ushort)global::InKnowWorks.TripleStoreMemoryCloud.Protocols.TSL.TSL.CommunicationModule.TripleStoreMemoryCloudServiceModule.SynReqRspMessageType.StoreTriple), _StoreTripleHandler);
            }

            {
                MessageRegistry.RegisterMessageHandler((ushort)(this.SynReqRspIdOffset + (ushort)global::InKnowWorks.TripleStoreMemoryCloud.Protocols.TSL.TSL.CommunicationModule.TripleStoreMemoryCloudServiceModule.SynReqRspMessageType.HelloMessage), _HelloMessageHandler);
            }
        }
コード例 #5
0
 protected override void RegisterMessageHandler()
 {
     base.RegisterMessageHandler();
     // then, override FanoutSearch_impl
     MessageRegistry.RegisterMessageHandler((ushort)(this.AsynReqIdOffset + (ushort)global::FanoutSearch.Protocols.TSL.TSL.CommunicationModule.FanoutSearch.AsynReqMessageType.FanoutSearch_impl), FanoutSearch_impl_Recv);
 }
コード例 #6
0
ファイル: Protocol.cs プロジェクト: wwailahm/SubgraphMatch
 internal override void RegisterMessageHandler()
 {
     MessageRegistry.RegisterMessageHandler((byte)Trinity.TSL.TrinitySlave.SSSPSlave.AsynReqMessageType.StartSSSP, _StartSSSPHandler);
     MessageRegistry.RegisterMessageHandler((byte)Trinity.TSL.TrinitySlave.SSSPSlave.AsynReqMessageType.DistanceUpdating, _DistanceUpdatingHandler);
 }
コード例 #7
0
ファイル: Protocol.cs プロジェクト: wwailahm/SubgraphMatch
 internal override void RegisterMessageHandler()
 {
     MessageRegistry.RegisterMessageHandler((byte)Trinity.TSL.TrinityProxy.MyProxy.SynReqRspMessageType.Query, _QueryHandler);
     MessageRegistry.RegisterMessageHandler((byte)Trinity.TSL.TrinityProxy.MyProxy.AsynReqMessageType.Report, _ReportHandler);
 }
コード例 #8
0
ファイル: Protocol.cs プロジェクト: wwailahm/SubgraphMatch
 internal override void RegisterMessageHandler()
 {
     MessageRegistry.RegisterMessageHandler((byte)Trinity.TSL.TrinitySlave.MySlave.AsynReqMessageType.Search, _SearchHandler);
 }