protected override bool TryGetConnection(int connectionId, out UdpConnection oconnection) { oconnection = null; if (this.connection.ConnectionId == 0 || connectionId == this.connection.ConnectionId) { oconnection = this.connection; return(true); } return(false); }
protected override bool TryGetConnection(int connectionId, out UdpConnection connection) { connection = null; UdpServerConnection server; bool found = this.connections.TryGetValue(connectionId, out server); if (found) { connection = server; return(true); } return(false); }
protected abstract bool TryGetConnection(int connectionId, out UdpConnection connection);