Back to product page

BandwidthReset method


Resets bandwidth calculation for specific channel.

Syntax

  • C#
  • C++
  • VB.NET
void devP2P.BandwidthReset(IntPtr Handle, int chanid);
The BandwidthReset(Handle,chanid) syntax has these parts:
HandleReference to the devP2P instance.
chanidInteger that specifies channel index.

void BandwidthReset(int chanid);
The BandwidthReset(chanid) syntax has these parts:
chanidInteger that specifies channel index.

Sub P2P_BandwidthReset(ByVal Handle As IntPtr, ByVal chanid As Integer)
The BandwidthReset(Handle,chanid) syntax has these parts:
HandleReference to the devP2P instance.
chanidInteger that specifies channel index.

Remarks

Calling this function causes internal bandwidth calculation to resets to 0. You should call it before you start file transfer, if you want to get accurate bandwidth results.

Platforms

Windows
Mac OSX
Linux
BSD