The SwarmChunkAvailability type exposes the following members.
Back to Top
Back to Top
Constructors
Name | Description | |
---|---|---|
SwarmChunkAvailability |
Creates a new instance of SwarmChunkAvailability
|
Methods
Name | Description | |
---|---|---|
AddOrUpdateCachedPeerChunkFlags |
Adds or updates a peer to the local availability list. Useful for when a peer informs us of an updated availability.
| |
AllPeerEndPoints |
Returns an array containing all known peer endpoints in the format locaIP:port
| |
AllPeerIdentifiers |
Returns an array containing the network identifiers of every peer in this swarm
| |
BroadcastItemRemoval |
Broadcast to all known peers that the local DFS is removing the specified item.
| |
BroadcastLocalAvailability |
Updates all peers in the swarm that we have updated a chunk
| |
CachedNonLocalChunkExistences |
Builds a dictionary of chunk availability throughout the current swarm for chunks we don't have locally. Keys are chunkIndex, peer network identifier, and peer total chunk count
| |
ChunkHealthMetric |
Metric used to determine the health of a chunk and whether swarm will benefit from a broadcasted update. A value
greater than 1 signifies a healthy chunk availability.
| |
ClearAllLocalAvailabilityFlags |
Clear all chunk availability flags for the local peer
| |
CloseConnectionsToCompletedPeers |
Closes established connections with completed peers as they are now redundant.
| |
Equals | (Inherited from Object.) | |
Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) | |
GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) | |
GetNewTimeoutCount |
Returns the new timeout count value after incrementing the timeout count for the provided peer IPEndPoint.
| |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
IPEndPointBusy |
Get the provided peer IPEndPoint busy status
| |
IPEndPointOnline |
Get the provided peer IPEndPoint online status
| |
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
NumCompletePeersInSwarm |
The number of complete peers in this swarm.
| |
NumPeersInSwarm |
The number of peers in this swarm
| |
PeerChunkAvailability |
Returns the chunk flag availability of the requested peer.
| |
PeerContactAllowed |
Single method for determining if contact can be made with the request peer.
Prevents loop back contact via matching identifier and currentLocalListenEndPoints.
Finally uses the DFS.AllowedPeerIPS and DFS.DisallowedPeerIPS if set.
| |
PeerExistsInSwarm(IPEndPoint) |
Returns true if a peer with the provided IPEndPoint exists in the swarm
| |
PeerExistsInSwarm(ShortGuid) |
Returns true if a peer with the provided networkIdentifier exists in this SwarmChunkAvailability
| |
PeerHasChunk |
Returns true if the specified peer has the specified chunkIndex.
| |
PeerIsComplete |
Returns true if a peer has a complete copy of the DFS item
| |
PeerIsSuperPeer |
Returns true if the specified peer is a super peer
| |
RecordLocalChunkCompletion |
Records a chunk as available for the local peer
| |
RemoveOldPeerAtEndPoint |
Removes any peers which have the same endPoint as the provided currentActivePeerEndPoint except one with matching currentActivePeerIdentifier
| |
RemovePeerIPEndPointFromSwarm |
Deletes knowledge of a peer IPEndPoint from our local swarm chunk availability.
If peerEndPoint.Address is IPAddress.Any then the entire peer will be deleted.
| |
SetIPEndPointBusy |
Set the provided peer IPEndPoint busy status to busy
| |
SetIPEndPointOffline |
Set the provided peer IPEndPoint as offline
| |
SetLocalChunkFlag |
Sets our local availability
| |
ThreadSafeSerialise |
Serialise this swarm chunk availability in a thread safe manner
| |
ToString | Returns a string that represents the current object. (Inherited from Object.) | |
UpdatePeerAvailability |
Update the chunk availability by contacting all existing peers. If a cascade depth greater than 1 is
provided will also contact each peers peers.
|
See Also