Пример #1
0
        public Client(int id, Socket sock, AsyUdpServer serv)
        {
            ID = id;
            server = serv;
            socket = sock;

            tcpAdress = (IPEndPoint)sock.RemoteEndPoint;
            Thread t = new Thread(AliveThread);
            t.Start();
        }
Пример #2
0
        public Client(int id, Socket sock, AsyUdpServer serv)
        {
            ID     = id;
            server = serv;
            socket = sock;

            tcpAdress = (IPEndPoint)sock.RemoteEndPoint;
            Thread t = new Thread(AliveThread);

            t.Start();
        }
Пример #3
0
        public Program()
        {
            server = new AsyUdpServer(1255, 1337);

            AsyUdpServer.DebugInfo.upData = true;

            server.OnStart += OnStart;
            server.OnConnect += OnConnect;
            server.OnMessage += OnMessage;
            server.OnDisconnect += OnDisconnect;
            server.OnDebug += OnDebug;

            Thread t = new Thread(InputThread);
            t.Start();
        }
Пример #4
0
        private int frameCount = 1;                                                                                             //当前帧数

        public Program()
        {
            server = new AsyUdpServer(1255, 1337);

            AsyUdpServer.DebugInfo.upData = true;

            server.OnStart      += OnStart;
            server.OnConnect    += OnConnect;
            server.OnMessage    += OnMessage;
            server.OnDisconnect += OnDisconnect;
            server.OnDebug      += OnDebug;

            Thread t = new Thread(InputThread);

            t.Start();
        }
Пример #5
0
 public MessageInfo(MessageBuffer message, IPEndPoint endPoint, AsyUdpServer s)
 {
     server = s;
     Message = message;
     Adress = endPoint;
 }
Пример #6
0
 public MessageInfo(MessageBuffer message, IPEndPoint endPoint, AsyUdpServer s)
 {
     server  = s;
     Message = message;
     Adress  = endPoint;
 }