【 OnPluginTelnetSubnegotiation 】
說明:
This is called if the server sends IAC SB x <data> IAC SE to the
client. In that case the callback lets you handle the protocol yourself.
The following types are not sent as they are handled internally.
24 (terminal type)
42 (charset)
85 (MCCP v1)
86 (MCCP v2)
91 (MXP)
In the case of type 102, then OnPluginTelnetOption is called as well (
without the option number, as that is fixed at 102).
若伺服器發送 IAC SB X <data> IAC SE 到客戶端。在這種情況下,這回傳可
以讓你自己處理協議。以下類型不發送,因為它們是在內部處理:
24 (terminal type)
42 (charset)
85 (MCCP v1)
86 (MCCP v2)
91 (MXP)
在 tyep 102 下,則 OnPluginTelnetOption 被呼叫(無須項目編號,因為
被固定在 102)。
範例:
function OnPluginTelnetSubnegotiation (type, data)
自訂內容
end
function OnPluginTelnetSubnegotiation (type, data)
Note ("received negotiation: ", telnet_option)
Note ("Received option string ", utils.tohex (data))
end -- function OnPluginTelnetSubnegotiation
--==-==--==-==--==-==--==-==--==-==--==-==--==-==--==-==--==-==--==-==--==-==--