Exemplo n.º 1
0
        static void Main(string[] argv)
        {
            testserver srv = MqFactoryS <testserver> .New();

            try {
                srv.LinkCreate(argv);
                srv.ProcessEvent(MqS.WAIT.FOREVER);
            } catch (Exception ex) {
                srv.ErrorSet(ex);
            }
            srv.Exit();
        }
Exemplo n.º 2
0
        public static void Main(string[] argv)
        {
            Filter1 srv = MqFactoryS <Filter1> .New("filter");

            try {
                srv.LinkCreate(argv);
                srv.ServiceCreate("+FTR", srv.FTR);
                srv.ServiceCreate("+EOF", srv.EOF);
                srv.ProcessEvent(MqS.WAIT.FOREVER);
            } catch (Exception ex) {
                srv.ErrorSet(ex);
            }
            srv.Exit();
        }
Exemplo n.º 3
0
        // ########################################################################

        static void Main(string[] args)
        {
            Server srv = MqFactoryS <Server> .New("server");

            try {
                srv.LinkCreate(args);
                srv.LogC("test", 1, "this is the log test\n");
                srv.ProcessEvent(MqS.WAIT.FOREVER);
            } catch (Exception ex) {
                srv.ErrorSet(ex);
            } finally {
                srv.Exit();
            }
        }
Exemplo n.º 4
0
        static void Main(string[] argv)
        {
            manfilter srv = MqFactoryS <manfilter> .New("ManFilter");

            try {
                srv.ConfigSetIsServer(true);
                srv.LinkCreate(argv);
                srv.ServiceCreate("+FTR", srv.FTR);
                srv.ServiceProxy("+EOF");
                srv.ProcessEvent(MqS.WAIT.FOREVER);
            } catch (Exception ex) {
                srv.ErrorSet(ex);
            }
            srv.Exit();
        }