ConnectionManager MemberssP2P NAT Traversal and peer-to-peer networking API
sP2P NAT Traversal and peer-to-peer networking API

The ConnectionManager type exposes the following members.
Constructors

  NameDescription
Public methodConnectionManager(IPEndPoint)
Initialises new instance of PeerManager class
Public methodConnectionManager(IPEndPoint, IPEndPoint)
Initialises new instance of PeerManager class
Back to Top
Methods

  NameDescription
Public methodBrodcastStateChange
Sends information of local peer state change to checkpoint and all other peers registered to track local peer state
Public methodClose
Closes session with checkpoint server
Public methodConnect(Peer, ConnectionType, IPEndPoint, PeerConnectCallback)
Connects to peer using information given in a peer object
Public methodConnect(Guid, Guid, ConnectionType, IPEndPoint, PeerConnectCallback)
Connect to peer using identifiers of peer itself and it's checkpoint
Public methodConnect(Peer, ConnectionType, Guid, IPEndPoint, PeerConnectCallback)
Connects to peer using information given in a peer object
Public methodConnect(Guid, Guid, ConnectionType, Guid, IPEndPoint, PeerConnectCallback)
Connect to peer using identifiers of peer itself and it's checkpoint
Public methodDispose
Disposes ConnectionManager object
Public methodEquals
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Public methodGetHashCode
Serves as a hash function for a particular type.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodOpen
Opens session with checkpoint server
Public methodQuery(Guid, PeerQueryCompleted)
Queries remote peer by its UID
Public methodQuery(String, PeerQueryCompleted, Int32, Int32)
Queries remote peers by their application specific parameters
Public methodRegisterStateTracking(List Guid )
Register for receiving information about peers state changes
Public methodRegisterStateTracking(Guid)
Register for receiving information about peer state changes
Public methodSendInstantMessage(Peer,  Byte , Int32, SendInstantMessageComplete)
Sends instant message to remote peer using checkpoint server system
Public methodSendInstantMessage(Peer, String, Int32, SendInstantMessageComplete)
Sends instant message to remote peer using checkpoint server system
Public methodSendInstantMessage(Guid, Guid,  Byte , Int32, SendInstantMessageComplete)
Sends instant message to remote peer using checkpoint server system
Public methodSendInstantMessage(Guid, Guid, String, Int32, SendInstantMessageComplete)
Sends instant message to remote peer using checkpoint server system
Public methodsetAccessTokens
Sets access parameters to needed to get into sP2P system
Public methodToString
Returns a String that represents the current Object.
(Inherited from Object.)
Public methodUnregisterStateTracking(List Guid )
Unregister for receiving information about peers state changes
Public methodUnregisterStateTracking(Guid)
Unregister for receiving information about peer state changes
Back to Top
Extension Methods

  NameDescription
Public Extension MethodWriteLogEntry
Writes new log entry
(Defined by Logger.)
Back to Top
Properties

  NameDescription
Public propertyAcceptPeerConnectionReslover
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
Public propertyAcceptPortQueue
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
Public propertyStatic memberAPIVersion
Public propertyBlockIncoming
If set to true other peers will not be able to connect
Public propertyCheckPointTimeout
Gets or sets max. time in milliseconds to wait response form checkpoint server. Default value is 8000 (8 seconds).
Public propertyLocalPeer
Local client peer object
Public propertyMaintainSession
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]
Public propertyPeerAccepted
Delegate function of type ConnectionManager.PeerConnect to call on peer acceptance as callback function
Public propertyStatus
Current status of ConnectionManager
Public propertyVNIndexManager
Gets virtual index storage manager object used for virtual users/networks object manipulation
Back to Top
Events

  NameDescription
Public eventonNetworkInterfaceChange
Raised when ConnectionManager network interface changes
Public eventonPeerAccepted
Raised when connection requested by remote peer to local peer is successfully created
Public eventonPeerAcceptFailure
Raised when tunnel creation requested from remote peer fails
Public eventonPeerConnect
Raised when connection requested by local peer to remote peer is successfully created
Public eventonPeerConnectFailure
Raised when tunnel creation requested to remote peer fails
Public eventonPeerQueryResponse
Raised when peer query response arrives
Public eventonPeerStateChanged
Raised when information about peer state change arrives (RegisterStateTracking function must be performed to be able to receive this information)
Public eventonReceiveInstantMessage
Raised when instant message arrives
Public eventonSendInstantMessageComplete
Raised when instant message is sent to checkpoint server
Public eventonSessionDrop
Raised on session drop
Public eventonSessionOpenFailure
Raised when session with Check Point server session fails to open
Public eventonSessionOpenSuccess
Raised when session with Check Point server session becomes active
Public eventonStateTractActionFailed
Raised when state track action (register/un-register tracking) fails
Public eventonStatusChange
Raised each time servers status changes
Back to Top
See Also