Exemple #1
0
        public static PackerHander GetInstance()
        {
            lock (lockthis)
            {

                if (_My == null)
                    _My = new PackerHander();
            }

            return _My;
        }
Exemple #2
0
        static void Main(string[] args)
        {
            PackerHander.GetInstance().Loading();

            server.BinaryInput  = new BinaryInputHandler(BinaryInputHandler);
            server.Connetions   = new ConnectionFilter(ConnectionFilter);
            server.MessageInput = new MessageInputHandler(MessageInputHandler);
            server.MessageOut  += new EventHandler <LogOutEventArgs>(server_MessageOut);
            server.Start();

            Console.ReadLine();
        }
Exemple #3
0
        public static PackerHander GetInstance()
        {
            lock (lockthis)
            {
                if (_My == null)
                {
                    _My = new PackerHander();
                }
            }

            return(_My);
        }