Protocols/MSNP/Activities/SDK/Techref/Objectmodel/Enums/ConnectionType: Difference between revisions
Jump to navigation
Jump to search
Animadoria (talk | contribs) No edit summary |
Animadoria (talk | contribs) No edit summary |
||
Line 17: | Line 17: | ||
: There is no connection to a remote client. | : There is no connection to a remote client. | ||
VBScript Syntax | === VBScript Syntax === | ||
<div class="clsCodeIndent"> | <div class="clsCodeIndent"> | ||
Line 28: | Line 28: | ||
</div> | </div> | ||
JavaScript Syntax | |||
=== JavaScript Syntax === | |||
<div class="clsCodeIndent"> | <div class="clsCodeIndent"> |
Latest revision as of 00:49, 13 August 2022
ConnectionType Enumeration
An enumeration representing the possible states of a peer connection. A peer connection can be in only one state at a time: connected directly, connected indirectly through MSN® Messenger servers, or disconnected.
Constants
Introductory text for parameters. [Optional.]
- Direct (0)
- There is a connection facilitated by switchboard servers between the client and the remote client for some types of data; and there is an open, direct connection between the client and the remote client for the peer-to-peer transport layer.
- Indirect (1)
- There is a connection facilitated by switchboard servers between the client and the remote client.
- Disconnected (2)
- There is no connection to a remote client.
VBScript Syntax
select case myConnType case Direct document.write("Direct Connection") case Indirect document.write("Messenger Connection") case Disconnected document.write("No Connection") end select
JavaScript Syntax
switch (myConnType) { case Direct: document.write("Direct Connection"); break; case Indirect: document.write("Messenger Connection"); break; case Disconnected: document.write("No Connection"); break; }
Enumerated Type Information
Minimum Availability: MSN Messenger 6.0