Cloud Class
Definition
Specifies the values that define a Peer Cloud object.
public ref class Cloud : IEquatable<System::Net::PeerToPeer::Cloud ^>, System::Runtime::Serialization::ISerializable
[System.Serializable]
public class Cloud : IEquatable<System.Net.PeerToPeer.Cloud>, System.Runtime.Serialization.ISerializable
[<System.Serializable>]
type Cloud = class
interface ISerializable
interface IEquatable<Cloud>
Public Class Cloud
Implements IEquatable(Of Cloud), ISerializable
- Inheritance
-
Cloud
- Attributes
- Implements
Remarks
A Cloud is a set of nodes that can communicate with each other through the network. Cloud, peer mesh, and peer-to-peer graph are synonymous. A single peer or node may be connected to more than one cloud.
Communication between nodes should never cross from one cloud to another. A Cloud instance is uniquely identified by its name, which is case-sensitive.
Clouds are tied very closely to network interfaces. On a multi-homed machine with two network cards attached to different subnets, three clouds will be returned: one for each of the link local addresses per interface, and a single global scope cloud.
Constructors
Cloud(SerializationInfo, StreamingContext) |
Initializes a new instance of the PNRP Cloud type. This populates a serialization information object with the data needed to serialize the Cloud object. |
Fields
AllLinkLocal |
Returns a reference to a Cloud which represents all the link-local clouds in which the client or peer is currently participating. |
Available |
Returns a static reference to a Cloud which represents all the available clouds in which the client is currently participating. |
Properties
Global |
Gets a Cloud instance that contains globally (internet) scoped peers. |
Name |
Gets the name of the peer Cloud. |
Scope |
Gets the network scope of the peer Cloud. |
ScopeId |
Gets the identifier of a specific IP address for this peer Cloud. |
Methods
Equals(Cloud) |
Performs a case-sensitive comparison between two cloud objects. |
Equals(Object) |
Determines whether the content of this peer Cloud is equivalent to the content of a System object. |
GetAvailableClouds() |
Obtains a collection of peer clouds known to the calling peer. |
GetCloudByName(String) |
Returns the Cloud object with the specified cloud name. |
GetHashCode() |
Overrides GetHashCode(). |
GetObjectData(SerializationInfo, StreamingContext) |
Populates a System.Runtime.Serialization information object with the data needed to serialize the Cloud. |
GetType() |
Gets the Type of the current instance. (Inherited from Object) |
MemberwiseClone() |
Creates a shallow copy of the current Object. (Inherited from Object) |
ToString() |
Returns a string representation of the current Cloud. |
Explicit Interface Implementations
ISerializable.GetObjectData(SerializationInfo, StreamingContext) |
Implements the ISerializable interface and returns the data needed to serialize the Cloud instance. |