Back to product page

State property


Returns current devP2P state.

Type

States enumeration.

Syntax

  • C#
  • C++
  • VB.NET
int devP2P.GetState(IntPtr Handle);
The State(Handle) syntax has these parts:
HandleReference to the devP2P instance.
Return valueCurrent state from States enumeration.

States State;
The State() syntax has these parts:
Return valueCurrent state.

Function P2P_GetState(ByVal Handle As IntPtr) As Integer
The State(Handle) syntax has these parts:
HandleReference to the devP2P instance.
Return valueCurrent state from States enumeration.

Remarks

State property returns current devP2P state. If devP2P is completely idle, State will hold StateStopped value. As soon as devP2P starts with some activity, StateChange event will fire where you can keep track on devP2P's behavior.

Platforms

Windows
Mac OSX
Linux
BSD