public override int GetHashCode() { int hashcode = TransportUsage.GetHashCode() ^ KeepAliveInterval.GetHashCode(); if (SubProtocol != null) { hashcode ^= SubProtocol.ToLowerInvariant().GetHashCode(); } return(hashcode); }
public override int GetHashCode() { int hashcode = TransportUsage.GetHashCode() ^ CreateNotificationOnConnection.GetHashCode() ^ KeepAliveInterval.GetHashCode() ^ DisablePayloadMasking.GetHashCode() ^ MaxPendingConnections.GetHashCode(); if (SubProtocol != null) { hashcode ^= SubProtocol.ToLowerInvariant().GetHashCode(); } return(hashcode); }
public void SetProtocol(SubProtocol subProtocol) { ClearPackets(); switch (subProtocol) { case SubProtocol.Handshake: initHandshake(); break; case SubProtocol.Status: initStatus(); break; case SubProtocol.Login: initLogin(); break; case SubProtocol.Game: initGame(); break; } }
public RRACSession(DebugLogger logger, SubProtocol subProtocol) : base(logger) { this.subProtocol = subProtocol; this.pendingReplies = new Dictionary <RRACCommand, TransactionNode>(1); }
public RRACSession(DebugLogger logger, SubProtocol subProtocol) : base(logger) { this.subProtocol = subProtocol; this.pendingReplies = new Dictionary<RRACCommand, TransactionNode>(1); }