Example #1
0
        static void ServerMain(string[] args)
        {
            TcpServer tcpServer = new TcpServer();
            ISessionFactory sessMgr = new MySessionMgr();

            tcpServer.SetSessionFactory(sessMgr);

            tcpServer.Listen("127.0.0.1", 5555);
            DefaultLoop.Run();
        }
Example #2
0
 public void BindTcpServer(TcpServer tcpServer)
 {
     _tcpSever = tcpServer;
     AssociateTcpServer(tcpServer);
 }
Example #3
0
 private extern bool AssociateTcpServer(TcpServer tcpServer);