【 OnPluginTelnetOption 】
說明:
This is called if the server sends IAC SB 102 <data> IAC SE to the
client. In that case the callback lets you handle the protocol yourself.
This is similar to OnPluginTelnetSubnegotiation but is included
separately for backwards compatibility. Note that
OnPluginTelnetSubnegotiation is also called (afterwards), so new scripts
can just use OnPluginTelnetSubnegotiation.
如果伺服器發送 IAC SB102 <data> IAC SE 到客戶端時被呼叫。在這種情況
下,這個回傳可以讓你自己處理協議。這類似 OnPluginTelnetSubnegotiation,
但各自包含反向相容。注意 OnPluginTelnetSubnegotiation 也被呼叫(事後),
所以新的腳本可以直接使用 OnPluginTelnetSubnegotiation。
範例:
function OnPluginTelnetOption (data)
自訂內容
end
function OnPluginTelnetOption (data)
Note ("Received option string ", utils.tohex (data))
end -- function OnPluginTelnetOption
--==-==--==-==--==-==--==-==--==-==--==-==--==-==--==-==--==-==--==-==--==-==--