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(); }
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(); }
// ######################################################################## 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(); } }
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(); }