Back to product page

ForwardClose event


Fires when forwarding is stopped.

Syntax

  • C#
  • C++
  • VB.NET
delegate void devP2P.ForwardCloseEvent(IntPtr Handle, int forwardid, int errorno);
The ForwardClose(Handle,forwid,error) syntax has these parts:
HandleReference to the devP2P instance.
forwidIndex of the forwarded channel.
errorErrors value, ErrorNone if operation is successful, or other value defining the error that occurred.

void ForwardClose(CP2P *p2p, int forwid, Errors error);
The ForwardClose(p2p,forwid,error) syntax has these parts:
p2pPointer to devP2P instance that fired the event.
forwidIndex of the forwarded channel.
errorErrors value, ErrorNone if operation is successful, or other value defining the error that occurred.

Delegate Sub P2P_ForwardCloseEvent(ByVal Handle As IntPtr, ByVal forwardid As Integer, ByVal errorno As Integer)
The ForwardClose(Handle,forwid,error) syntax has these parts:
HandleReference to the devP2P instance.
forwidIndex of the forwarded channel.
errorErrors value, ErrorNone if operation is successful, or other value defining the error that occurred.

Remarks

This event is fired when specific forwarding closes. At this moment, all users that were using this channel are disconnected from devP2P.

To use this event, you should implement function by yourself in the code (based on function declaration), and set devP2P.Events.ForwardClose structure member to point to your function.

Code sample

  • C++

Platforms

Windows
Mac OSX
Linux
BSD