sP2P NAT Traversal and peer-to-peer networking API
Assembly: sP2PLib (in sP2PLib.dll) Version: 1.6.0.0 (1.6.0.0)
Connect to peer using identifiers of peer itself and it's checkpoint
Namespace: sP2PLibAssembly: 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, _ UserTransactionUID As Guid, _ 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
- UserTransactionUID
- Type: System Guid
User defined transaction UID - useful when peers have need to open multiple tunnels. They can negotiate UID before connect operation, and connection acceptor can distinguish tunnel 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 operationSee Also