Exemplo n.º 1
0
 static void Main(string[] args)
 {
     Beetle.JT808.Serializes.SerializerFactory.Init();
     mServer         = Beetle.Express.ServerFactory.CreateTCP();
     mServer.Port    = 9091;
     mServer.Handler = new Program();
     mServer.Open(false, false, false, 1, 1, "JT808");
     Console.WriteLine("server start!");
     Console.Read();
 }
Exemplo n.º 2
0
 public void Open()
 {
     try
     {
         mServer.Open();
         Utils.Log.InfoFormat("log server open {0}@{1} success", mServer.Host, mServer.Port);
     }
     catch (Exception e_)
     {
         Utils.Log.ErrorFormat("log server open error {0}", e_.Message);
     }
 }