Back to product page

StopForward method


Stops specific channel forwarding.

Type

Integer.

Syntax

  • C#
  • C++
  • VB.NET
int devP2P.StopForward(IntPtr Handle, int index);
The StopForward(Handle,index) syntax has these parts:
HandleReference to the devP2P instance.
indexIndex of the forwarded channel.
Return value0 (ErrorNone) if success, otherwise negative value from Errors enumeration.

int StopForward(int index);
The StopForward(index) syntax has these parts:
indexIndex of the forwarded channel.
Return value0 (ErrorNone) if success, otherwise negative value from Errors enumeration.

Function P2P_StopForward(ByVal Handle As IntPtr, ByVal index As Integer) As Integer
The StopForward(Handle,index) syntax has these parts:
HandleReference to the devP2P instance.
indexIndex of the forwarded channel.
Return value0 (ErrorNone) if success, otherwise negative value from Errors enumeration.

Remarks

StopForward will close all forwarded connections that belong to the channel, and will not accept any new connections. It will also stop listening on specified ports that we assigned to the channel in StartForward method.

Platforms

Windows
Mac OSX
Linux
BSD