public TcpConnection CreateConnection(Socket Sock) { if (Sock == null) { return null; } TcpConnection Connection = new TcpConnection(ConnectionCounter++, Sock); //UberEnvironment.GetLogging().WriteLine("Accepted new connection. [" + Connection.Id + "/" + Connection.IPAddress + "]"); return Connection; }
public void Stop() { if (GetHabbo() != null) { Habbo.OnDisconnect(); Habbo = null; } if (GetConnection() != null) { Connection = null; } }
public void HandleNewConnection(TcpConnection connection) { Connections.Add(connection.Id, connection); UberEnvironment.GetGame().GetClientManager().StartClient(connection.Id); }
public GameClient(uint ClientId) { Id = ClientId; Connection = UberEnvironment.GetConnectionManager().GetConnection(ClientId); }