sP2P NAT Traversal and peer-to-peer networking API
Assembly: sP2PLib (in sP2PLib.dll) Version: 1.6.0.0 (1.6.0.0)
Connects to peer using information given in a peer object
Namespace: sP2PLibAssembly: sP2PLib (in sP2PLib.dll) Version: 1.6.0.0 (1.6.0.0)
Syntax
Public Function Connect ( _ Peer As Peer, _ ConnectionType As ConnectionType, _ Optional BindEndPoint As IPEndPoint = Nothing, _ Optional callback As PeerConnectCallback = Nothing _ ) As Guid
Parameters
- Peer
- Type: sP2PLib Peer
Peer object containing information of peer to whom we connect
- 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 operationSee Also