
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:
The StopForward(Handle,index) syntax has these parts:
Handle | Reference to the devP2P instance. |
index | Index of the forwarded channel. |
Return value | 0 (ErrorNone) if success, otherwise negative value from Errors enumeration. |
int StopForward(int index);
The StopForward(index) syntax has these parts:
The StopForward(index) syntax has these parts:
index | Index of the forwarded channel. |
Return value | 0 (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:
The StopForward(Handle,index) syntax has these parts:
Handle | Reference to the devP2P instance. |
index | Index of the forwarded channel. |
Return value | 0 (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
WindowsMac OSX
Linux
BSD