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 42: | Line 42: | ||
</div> | </div> | ||
=== Enumerated Type Information === | |||
'''Minimum Availability:''' MSN Messenger 6.0 | |||
Revision as of 23:22, 12 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