public Client(int clientId) { id = clientId; clientPlayer = null; tcp = new TCP(clientId); udp = new UDP(clientId); }
public Client(int id, int idRoom, TcpClient socket) { Id = id; IdRoom = idRoom; InitializeClientData(); tcp = new TCP(id, socket, this); udp = new UDP(id); }
internal void Reconnect(string disconnectPoint, int idClient) { if (disconnectPoint != null) { if (disconnectPoint.ToString() == disconnectPoint) { tcp = new TCP(Id, Server.clients[idClient].tcp.client, this); disconnectTime = new DateTime(); Server.rooms[Server.clients[idClient].IdRoom].players.Remove(idClient); Server.clients.Remove(idClient); } } }
public Client(int _clientID) { id = _clientID; tcp = new TCP(id); }
public ClientConnection(Guid _clientId) { id = _clientId; tcp = new TCP(id); udp = new UDP(id); }
public Client(int _id) { id = _id; tcp = new TCP(id); udp = new UDP(id); }
public Client(int _clientId) { id = _clientId; tcp = new TCP(id); udp = new UDP(id); }
public Client(int clientID) { ID = clientID; tcp = new TCP(clientID); udp = new UDP(clientID); }
public Client(int id) { this.id = id; tcp = new TCP(id); udp = new UDP(id); }
static void Main(string[] args) { TCPHandler.InitializeTCPHandler(); TCP.SetupServer(); Console.ReadLine(); }