示例#1
0
 /// <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);
     }
 }
示例#2
0
 /// <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);
 }
示例#3
0
 /// <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));
 }
示例#4
0
 /// <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));
 }
示例#5
0
 /// <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));
 }
示例#6
0
 /// <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));
 }