sP2P NAT Traversal and peer-to-peer networking APIThe ConnectionManager type exposes the following members.
Back to Top
Back to Top
Back to Top
Back to Top
Back to Top
Constructors
| Name | Description | |
|---|---|---|
| ConnectionManager(IPEndPoint) |
Initialises new instance of PeerManager class
| |
| ConnectionManager(IPEndPoint, IPEndPoint) |
Initialises new instance of PeerManager class
|
Methods
| Name | Description | |
|---|---|---|
| BrodcastStateChange |
Sends information of local peer state change to checkpoint and all other peers registered to track local peer state
| |
| Close |
Closes session with checkpoint server
| |
| Connect(Peer, ConnectionType, IPEndPoint, PeerConnectCallback) |
Connects to peer using information given in a peer object
| |
| Connect(Guid, Guid, ConnectionType, IPEndPoint, PeerConnectCallback) |
Connect to peer using identifiers of peer itself and it's checkpoint
| |
| Connect(Peer, ConnectionType, Guid, IPEndPoint, PeerConnectCallback) |
Connects to peer using information given in a peer object
| |
| Connect(Guid, Guid, ConnectionType, Guid, IPEndPoint, PeerConnectCallback) |
Connect to peer using identifiers of peer itself and it's checkpoint
| |
| Dispose |
Disposes ConnectionManager object
| |
| Equals | Determines whether the specified Object is equal to the current Object. (Inherited from Object.) | |
| GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) | |
| GetType | Gets the Type of the current instance. (Inherited from Object.) | |
| Open |
Opens session with checkpoint server
| |
| Query(Guid, PeerQueryCompleted) |
Queries remote peer by its UID
| |
| Query(String, PeerQueryCompleted, Int32, Int32) |
Queries remote peers by their application specific parameters
| |
| RegisterStateTracking(List Guid ) |
Register for receiving information about peers state changes
| |
| RegisterStateTracking(Guid) |
Register for receiving information about peer state changes
| |
| SendInstantMessage(Peer, Byte , Int32, SendInstantMessageComplete) |
Sends instant message to remote peer using checkpoint server system
| |
| SendInstantMessage(Peer, String, Int32, SendInstantMessageComplete) |
Sends instant message to remote peer using checkpoint server system
| |
| SendInstantMessage(Guid, Guid, Byte , Int32, SendInstantMessageComplete) |
Sends instant message to remote peer using checkpoint server system
| |
| SendInstantMessage(Guid, Guid, String, Int32, SendInstantMessageComplete) |
Sends instant message to remote peer using checkpoint server system
| |
| setAccessTokens |
Sets access parameters to needed to get into sP2P system
| |
| ToString | Returns a String that represents the current Object. (Inherited from Object.) | |
| UnregisterStateTracking(List Guid ) |
Unregister for receiving information about peers state changes
| |
| UnregisterStateTracking(Guid) |
Unregister for receiving information about peer state changes
|
Extension Methods
| Name | Description | |
|---|---|---|
| WriteLogEntry | Writes new log entry (Defined by Logger.) |
Properties
| Name | Description | |
|---|---|---|
| AcceptPeerConnectionReslover |
Get of sets delegate of type ConnectionManager.AcceptPeerConnection for function that decides will remote peer be allowed to connect or not . By default only ConnectionManager.BlockIncoming parameter is considered
| |
| AcceptPortQueue |
If some specific local port for socket that will be used for connection to remote peer that has requested tunnel is desired, this queue can be filled with desired values
| |
| APIVersion | ||
| BlockIncoming |
If set to true other peers will not be able to connect
| |
| CheckPointTimeout |
Gets or sets max. time in milliseconds to wait response form checkpoint server. Default value is 8000 (8 seconds).
| |
| LocalPeer |
Local client peer object
| |
| MaintainSession | Gets or sets a value indicating that session establishment with checkpoint should be retried in case of session drop or initial session open failure due TIMEOUT until ConnectionManager.close() method is called. [Default: True] | |
| PeerAccepted |
Delegate function of type ConnectionManager.PeerConnect to call on peer acceptance as callback function
| |
| Status |
Current status of ConnectionManager
| |
| VNIndexManager |
Gets virtual index storage manager object used for virtual users/networks object manipulation
|
Events
| Name | Description | |
|---|---|---|
| onNetworkInterfaceChange |
Raised when ConnectionManager network interface changes
| |
| onPeerAccepted |
Raised when connection requested by remote peer to local peer is successfully created
| |
| onPeerAcceptFailure |
Raised when tunnel creation requested from remote peer fails
| |
| onPeerConnect |
Raised when connection requested by local peer to remote peer is successfully created
| |
| onPeerConnectFailure |
Raised when tunnel creation requested to remote peer fails
| |
| onPeerQueryResponse |
Raised when peer query response arrives
| |
| onPeerStateChanged |
Raised when information about peer state change arrives (RegisterStateTracking function must be performed to be able to receive this information)
| |
| onReceiveInstantMessage |
Raised when instant message arrives
| |
| onSendInstantMessageComplete |
Raised when instant message is sent to checkpoint server
| |
| onSessionDrop |
Raised on session drop
| |
| onSessionOpenFailure |
Raised when session with Check Point server session fails to open
| |
| onSessionOpenSuccess |
Raised when session with Check Point server session becomes active
| |
| onStateTractActionFailed |
Raised when state track action (register/un-register tracking) fails
| |
| onStatusChange |
Raised each time servers status changes
|
See Also