public static float INTERP_TIME;//Time since last NetTransform was received, used for interpolation. public NetClient(string name, int udpport) { LOG = new ConcurrentQueue <string>(); UDPout = new ConcurrentQueue <Packet>(); TCPout = new ConcurrentQueue <Packet>(); this.name = name; this.udpport = udpport; connected = false; cid = 0; netdata = new NetData(); BindingUtils.LoadDatastore(ref netdata); }
public NetServer(byte maxClients, int tcpport, int udpport) { TCPin = new ConcurrentQueue <Packet>(); TCPOut = new ConcurrentQueue <Packet>(); UDPin = new ConcurrentQueue <Packet>(); UDPOut = new ConcurrentQueue <Packet>(); this.maxClients = maxClients; this.tcpport = tcpport; this.udpport = udpport; clients = new ConcurrentDictionary <byte, ConnectedClient>(); LOG = new ConcurrentQueue <string>(); netdata = new NetData(); BindingUtils.LoadDatastore(ref netdata); }