예제 #1
0
        /// <summary>
        /// Initializes a new instance of the <see cref="BaseEventSender"/> class with the specified
        /// <see cref="BasePeer"/>.
        /// </summary>
        /// <param name="peer"><see cref="BasePeer"/> to use.</param>
        protected BaseEventSender(BasePeer peer)
        {
            if (peer == null)
            {
                throw new ArgumentNullException(nameof(peer));
            }

            _peer = peer;
        }
예제 #2
0
 public virtual void OnDisconnect(BasePeer peer, DisconnectReason reasonCode, string reasonDetail)
 {
     // Space
 }
예제 #3
0
 public abstract void OnOperationRequest(BasePeer peer, byte opCode, MemoryStream bytes);