Example #1
0
 private void OnMaxConnectionsPerIPExceeded(UdpSession s)
 {
     if (s != null && s.IsRunning)
     {
         s.RaiseError("", "Client host rejected: too many connections from your IP(" + s.RemoteEndPoint.Address + "), please try again later.");
     }
 }
Example #2
0
 private void OnMaxConnectionsExceeded(UdpSession s)
 {
     if (s != null && s.IsRunning)
     {
         s.RaiseError("", "Client host rejected: too many connections, please try again later.");
     }
 }