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(); }
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(); }
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(); }
public MessageInfo(MessageBuffer message, IPEndPoint endPoint, AsyUdpServer s) { server = s; Message = message; Adress = endPoint; }