Back to product page

devP2P


Main devP2P object.


CreateCreates new devP2P class instance.
DestroyDestroys current devP2P instance.
Properties
ConnectionTimeoutDetermines total number of milliseconds before connection drops for inactivity.
ConnectionTypeReturns type of transport with remote peer.
EventsReference to event handlers.
LinkingRelayDelayTotal number of direct link attempts before relay is used.
LinkingRetryCountDetermines how many times retry is performed during linking stage.
LinkingRetryDelayDetermines delay time between linking attempts, in milliseconds.
MediatorAddressHolds IP address (or hostname) of the mediator.
MediatorPortHolds port of the mediator.
MediatorRetryCountDetermines number of retries in Search method.
MediatorRetryDelayNumber of milliseconds to wait between two retries to reach the mediator.
MyNameHolds user defined identity ID of local devP2P peer.
PeerAdapterIPHolds IP address of remote peer for VPN.
PeerAdapterMACHolds MAC address of remote peer for VPN.
PeerNameHolds user defined identity ID of remote devP2P peer.
RelayLicenseHolds license information to provide to mediator for using its relay(s).
StateReturns current devP2P state.
TagTag for misc usage.
TCPPortSpecifies local TCP port used for listening.
UDPPortSpecifies local UDP port used for listening.
Methods
BandwidthReturns calculated bandwidth usage.
BandwidthResetResets bandwidth calculation for specific channel.
DisconnectDisconnects from remote devP2P peer.
ErrorTextReturns text representation of the error.
GetForwardReturns reference to CP2PForward object.
LinkInitiates connection with remote peer.
PingSends internal PING packet to remote peer.
SearchSearches for remote peer using mediator.
SendDataSends byte array message to remote peer.
SendFileSends file to remote peer.
SendTextSends text message to remote peer.
SetAdapterAssigns existing adapter for network forwarding.
SetLicenseKeySets your license key.
SetPasswordDetermines if devP2P traffic is encrypted.
StartStarts listening and accepting connections.
StartForwardStarts port forwarding for specific forward channel.
StateTextReturns text representation of the state.
StopStops listening for connections.
StopForwardStops specific channel forwarding.
TestBandwidthTests bandwidth with remote peer.
VersionReturns devP2P version information.
Events
DataReceivedFires when data is received from remote.
FileDoneFires when file transfer completes.
FileProgressFires during file transfer.
FileReceiveFires when remote devP2P wants to send us a file.
FileSendFires when local devP2P starts sending file to remote.
ForwardCloseFires when forwarding is stopped.
ForwardOpenFires when port forwarding is open.
LinkDoneFires when devP2P links with remote devP2P instance.
NewUPNPMappingFires when new UPnP port mapping was created.
PingFires when Ping packet comes from remote peer.
SearchDoneFires when Search method completes its search for remote devP2P peer.
SearchStartFires when search has started.
StateChangeFires when devP2P changes its state.
StoppedFires when devP2P stops working and goes offline.
TextReceivedFires when text message arrives from remote side.
UserConnectedFires when user connects to forwarding channel.
UserDisconnectedFires when user disconnects from the forwarded channel.

Platforms

Windows
Mac OSX
Linux
BSD