Back to product page

DisconnectUser method


Disconnect specific user from the forwarding.

Syntax

  • C#
  • C++
  • VB.NET
void devP2P.Forward_DisconnectUser(IntPtr ForwardHandle, IntPtr UserHandle);
The DisconnectUser(ForwardHandle,UserHandle) syntax has these parts:
ForwardHandleReference to the CP2PForward instance.
UserHandleReference to CP2PForwardUser that will be disconnected.

void DisconnectUser(CP2PForwardUser *user);
The DisconnectUser(user) syntax has these parts:
userReference to CP2PForwardUser that will be disconnected.

Sub P2PForward_DisconnectUser(ByVal ForwardHandle As IntPtr, ByVal UserHandle As IntPtr)
The DisconnectUser(ForwardHandle,UserHandle) syntax has these parts:
ForwardHandleReference to the CP2PForward instance.
UserHandleReference to CP2PForwardUser that will be disconnected.

Platforms

Windows
Mac OSX
Linux
BSD