Protocols/MSNP/Activities/SDK/Techref/Objectmodel/Objects/Channel/Events/OnTypeChange: Difference between revisions
Jump to navigation
Jump to search
Animadoria (talk | contribs) (Created automatically by Anima Importer) |
Animadoria (talk | contribs) No edit summary |
||
Line 1: | Line 1: | ||
<!-- Generated @ 08/12/2022 23:45:55 +01:00 using Anima's CHM converter based on techref/objectmodel/objects/channel/events/OnTypeChange.htm --> | <!-- Generated @ 08/12/2022 23:45:55 +01:00 using Anima's CHM converter based on techref/objectmodel/objects/channel/events/OnTypeChange.htm --> | ||
{{Protocols/MSNP|section=Activities}} | {{Protocols/MSNP|section=Activities}} | ||
__NOTOC__= | __NOTOC__= [[Protocols/MSNP/Activities/SDK/Techref/Objectmodel/Objects/Channel/Index|Channel]].OnTypeChanged Event = | ||
Fires when the type of connection between peers changes. | Fires when the type of connection between peers changes. | ||
VBScript Syntax | === VBScript Syntax === | ||
<div class="clsCodeStd"> | <div class="clsCodeStd"> | ||
Line 12: | Line 12: | ||
<pre class="clsCode">function Channel_OnTypeChanged() | <pre class="clsCode">function Channel_OnTypeChanged() | ||
' Inspect Channel.Type for the state of the connection (Direct, Indirect, or Disconnected) | ' Inspect Channel.Type for the state of the connection (Direct, Indirect, or Disconnected) | ||
End Function | End Function</pre> | ||
</div> | </div> | ||
JavaScript Syntax | === JavaScript Syntax === | ||
<div class="clsCodeStd"> | <div class="clsCodeStd"> | ||
Line 22: | Line 21: | ||
<pre class="clsCode">function Channel_OnTypeChanged() { | <pre class="clsCode">function Channel_OnTypeChanged() { | ||
// Inspect Channel.Type for the state of the connection (Direct, Indirect, or Disconnected) | // Inspect Channel.Type for the state of the connection (Direct, Indirect, or Disconnected) | ||
} | }</pre> | ||
</div> | </div> | ||
Remarks | === Remarks=== | ||
Your application may have features that are useful only during a direct connection. It may improve bandwidth to enable these features only when <span class="clsObject">Type</span> indicates a direct connection. | Your application may have features that are useful only during a direct connection. It may improve bandwidth to enable these features only when <span class="clsObject">Type</span> indicates a direct connection. |
Latest revision as of 00:55, 13 August 2022
Channel.OnTypeChanged Event
Fires when the type of connection between peers changes.
VBScript Syntax
function Channel_OnTypeChanged() ' Inspect Channel.Type for the state of the connection (Direct, Indirect, or Disconnected) End Function
JavaScript Syntax
function Channel_OnTypeChanged() { // Inspect Channel.Type for the state of the connection (Direct, Indirect, or Disconnected) }
Remarks
Your application may have features that are useful only during a direct connection. It may improve bandwidth to enable these features only when Type indicates a direct connection.