/// <summary> /// Fires when a connection request of a client has been denied. /// </summary> /// <param name="e"></param> public virtual void OnClientConenctionRequestDenied(ConnectionRequestEventArgs e) { if (clientConnectionRequestDenied != null) { clientConnectionRequestDenied(this, e); } }
/// <summary> /// Fires when a connection request of a client has been approved. /// </summary> /// <param name="e"></param> public virtual void OnClientConnectionRequestApproved(ConnectionRequestEventArgs e) { if (clientConnectionRequestApproved != null) clientConnectionRequestApproved(this, e); }
/// <summary> /// Fires when a conenction request of a client has been denied because of various reasons. /// </summary> /// <param name="sender">Sender object, MPServer.</param> /// <param name="e">Containing information about the connection request.</param> void MPServer_clientConnectionRequestDeniedEvent(object sender, ConnectionRequestEventArgs e) { Log.Warning(String.Format("Client connection request denied. IP:{0} Username:{1} Password:{2} Note:{3}", e.Message.SenderEndPoint, e.Username, e.Password, e.Note)); }
/// <summary> /// Fires when a connection request of a client has been accepted. /// </summary> /// <param name="sender">Sender object, MPServer.</param> /// <param name="e">Containing information about the connection request.</param> void MPServer_clientConnectionRequestApprovedEvent(object sender, ConnectionRequestEventArgs e) { Log.Message(String.Format("New client connected. IP:{0} Username:{1}", e.Message.SenderEndPoint, e.Username)); }