Property | Type | Description | |
---|---|---|---|
AfterSerialise | void | ||
BeforeSerialise | void | ||
PeerInfo | System | ||
ValidateNetworkIdentifier | void |
Method | Description | |
---|---|---|
AddPeerIPEndPoint ( |
Add new IPEndPoint for a peer. Returns true if successfully added, otherwise false.
|
|
CheckAllIPEndPointBusyFlags ( int msSinceBusyToClear ) : void |
Clear any busy flags set for the IPEndPoints of this peer if they are older than the provided MS
|
|
GetConnectionInfo ( ) : List |
Returns a new list containing all peer ConnectionInfos
|
|
GetCurrentTimeoutCount ( |
Return the current timeout count value.
|
|
GetNewTimeoutCount ( |
Returns the new timeout count value after incrementing the timeout count.
|
|
HasAtleastOneOnlineIPEndPoint ( ) : bool |
Returns true if this peer has at least one on line ipEndPoint
|
|
IsPeerIPEndPointBusy ( |
Returns the current busy status of the requested peer IPEndPoint
|
|
IsPeerIPEndPointOnline ( |
Returns true if the specified peer has the specified IPEndPoint online.
|
|
PeerContainsIPEndPoint ( |
Returns true if the provided IPEndPoint exists for this peer
|
|
PeerInfo ( List |
Initialise a new PeerInfo
|
|
RemovePeerIPEndPoint ( ConnectionInfo connectionInfo ) : bool |
Removes the provided connectionInfo from all internal dictionaries. Returns true if connectionInfo exists, otherwise false
|
|
RemovePeerIPEndPoint ( |
Removes the provided connectionInfo from all internal dictionaries. Returns true if connectionInfo exists, otherwise false
|
|
SetPeerIPEndPointBusyStatus ( |
Update the provided peer IPEndPoint busy status
|
|
SetPeerIPEndPointOnlineStatus ( |
Update the provided peer IPEndPoint online status
|
|
ToString ( ) : string |
Returns a clean descriptor for this PeerInfo
|
Method | Description | |
---|---|---|
AfterSerialise ( ) : void | ||
BeforeSerialise ( ) : void | ||
PeerInfo ( ) : System | ||
ValidateNetworkIdentifier ( ConnectionInfo connectionInfo ) : void |
A private method which checks the provided network identifier with that expected.
|
public AddPeerIPEndPoint ( |
||
networkIdentifier | The network identifier of the relevant peer | |
peerIPEndPoint | The relevant IPEndPoint | |
return | bool |
public CheckAllIPEndPointBusyFlags ( int msSinceBusyToClear ) : void | ||
msSinceBusyToClear | int | Milliseconds since busy flag was set to clear |
return | void |
public GetCurrentTimeoutCount ( |
||
networkIdentifier | The network identifier of the relevant peer | |
peerIPEndPoint | The relevant IPEndPoint | |
return | int |
public GetNewTimeoutCount ( |
||
networkIdentifier | The network identifier of the relevant peer | |
peerIPEndPoint | The relevant IPEndPoint | |
return | int |
public HasAtleastOneOnlineIPEndPoint ( ) : bool | ||
return | bool |
public IsPeerIPEndPointBusy ( |
||
networkIdentifier | The network identifier of the relevant peer | |
peerIPEndPoint | The relevant IPEndPoint | |
return | bool |
public IsPeerIPEndPointOnline ( |
||
networkIdentifier | The network identifier of the peer to check | |
peerIPEndPoint | The IPEndPoint of the peer to check | |
return | bool |
public PeerContainsIPEndPoint ( |
||
networkIdentifier | The network identifier of the relevant peer | |
peerIPEndPoint | The relevant IPEndPoint | |
return | bool |
public PeerInfo ( List |
||
peerConnectionInfo | List |
All ConnectionInfos corresponding with this peer |
peerChunkFlags | The initial ChunkFlags for this peer | |
superPeer | bool | True if this is a SuperPeer |
return | System |
public RemovePeerIPEndPoint ( ConnectionInfo connectionInfo ) : bool | ||
connectionInfo | ConnectionInfo | The connectionInfo to remove |
return | bool |
public RemovePeerIPEndPoint ( |
||
networkIdentifier | The network identifier of the relevant peer | |
peerIPEndPoint | The relevant IPEndPoint | |
return | bool |
public SetPeerIPEndPointBusyStatus ( |
||
networkIdentifier | The network identifier of the relevant peer | |
peerIPEndPoint | The relevant IPEndPoint | |
busyStatus | bool | The new peer busy status |
return | void |
public SetPeerIPEndPointOnlineStatus ( |
||
networkIdentifier | The network identifier of the relevant peer | |
peerIPEndPoint | The relevant IPEndPoint | |
onlineStatus | bool | The new online status |
return | void |