Microsoft Chat Server SDK Reference

Chat Class Protection Level

The enumeration is used to set the degree of attack protection provided to class members, and is used by ChatClass.ProtectionLevel.

Attack protection regulates the flow of traffic from members of a user class by limiting the frequency with which Chat Service processes data messages, invitations, join messages, messages from the host to the channel, and standard messages (private messages, notices, and whispers). If the service receives one of these messages, it temporarily suspends the user's session. After the delay expires, the service resumes normal message processing. Also, if a user tries to join a channel using the wrong password, the service delays processing subsequent attempts by that user to join the channel.

The following table describes the four levels of attack protection.

Chat_Class_ProtectionLevel enumeration Meaning
ctProtectionNone No attack protection.
ctProtectionLow Low attack protection.
ctProtectionMedium Medium attack protection.
ctProtectionHigh High attack protection.

As shown in the following table, each attack level corresponds to a specific delay time (in seconds) according to the type of message the service receives or the type of event that occurs.

Message type or event None Low Medium High
Data 0 1 2 3
Invitation 0 2 4 5
Join 0 2 3 4
Wrong channel password 0 2 4 5
Standard (PRIVMSG, NOTICE, or WHISPER) 0 1 2 3
Message from host to channel 0 1 1 2

The attack protection delay is combined with the ChatClass.MessageLag and ChatChannel.Lag properties.


© 1998 Microsoft Corporation. All rights reserved.