Ejemplo n.º 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);
     }
 }
Ejemplo n.º 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);
 }
Ejemplo n.º 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));
 }
Ejemplo n.º 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));
 }
Ejemplo n.º 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));
 }
Ejemplo n.º 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));
 }