ConnectionManager Connect Method (Guid, Guid, ConnectionType, IPEndPoint, ConnectionManager )sP2P NAT Traversal and peer-to-peer networking API
sP2P NAT Traversal and peer-to-peer networking API
Connect to peer using identifiers of peer itself and it's checkpoint

Namespace: sP2PLib
Assembly: sP2PLib (in sP2PLib.dll) Version: 1.6.0.0 (1.6.0.0)
Syntax

Public Function Connect ( _
	CheckPointUID As Guid, _
	PeerUID As Guid, _
	ConnectionType As ConnectionType, _
	Optional BindEndPoint As IPEndPoint = Nothing, _
	Optional callback As PeerConnectCallback = Nothing _
) As Guid

Parameters

CheckPointUID
Type: System Guid
Peer's CheckPoint Unique Identifier
PeerUID
Type: System Guid
Peer's Unique Identifier
ConnectionType
Type: sP2PLib ConnectionType
Protocol (TCP/UDP) to be used for connection
BindEndPoint (Optional)
Type: System.Net IPEndPoint
Local end-point to bind result socket to
callback (Optional)
Type: PeerConnectCallback
Function delegate of type PeerConnectDelagate to execute on connection completion

Return Value

TransactionUID of connect operation
See Also