public ClientAgent(Socket s, ReciptServer srv)
 {
     mServ = srv;
     peer = s;
     Trace.TraceInformation("new connect comming from " + peer.RemoteEndPoint.ToString());
     mRemoteInfo = ((IPEndPoint)peer.RemoteEndPoint).Address.ToString();
     gPacketHandle.reset();
     Program.UpdateStatus(srv.ServiceInfo() + "->" + mRemoteInfo);
 }
示例#2
0
 public ClientAgent(Socket s, ReciptServer srv)
 {
     mServ = srv;
     peer  = s;
     Trace.TraceInformation("new connect comming from " + peer.RemoteEndPoint.ToString());
     mRemoteInfo = ((IPEndPoint)peer.RemoteEndPoint).Address.ToString();
     gPacketHandle.reset();
     Program.UpdateStatus(srv.ServiceInfo() + "->" + mRemoteInfo);
 }
示例#3
0
        /**
         * Init the internal message handle
         **/
        private void fmReqList_Load(object sender, EventArgs e)
        {
            CheDaoFactory.init();
            this.Text += " " + AppConfig.GetVersion();
            ReciptServer serv = new ReciptServer();

            serv.start(AppConfig.GetPort());
            _UpdateStatus(serv.ServiceInfo());
            layoutMainContent();
        }
示例#4
0
 /**
 Init the internal message handle
 **/
 private void fmReqList_Load(object sender, EventArgs e)
 {
     CheDaoFactory.init();
     this.Text += " " + AppConfig.GetVersion();
     ReciptServer serv = new ReciptServer();
     serv.start(AppConfig.GetPort());
     _UpdateStatus(serv.ServiceInfo());
     layoutMainContent();
 }