
ConnectionTimeout property
Determines total number of milliseconds before connection drops for inactivity.
Type
Integer.Syntax
- C#
- C++
- VB.NET
void devP2P.SetConnectionTimeout(IntPtr Handle, int Value);
The ConnectionTimeout(Handle,value) syntax has these parts:
int devP2P.GetConnectionTimeout(IntPtr Handle);
The ConnectionTimeout(Handle) syntax has these parts:
The ConnectionTimeout(Handle,value) syntax has these parts:
Handle | Reference to the devP2P instance. |
value | Integer value representing connection timeout in milliseconds. |
int devP2P.GetConnectionTimeout(IntPtr Handle);
The ConnectionTimeout(Handle) syntax has these parts:
Handle | Reference to the devP2P instance. |
Return value | Current value for ConnectionTimeout property. |
int ConnectionTimeout = value;
The ConnectionTimeout(value) syntax has these parts:
The ConnectionTimeout(value) syntax has these parts:
value | Integer value representing connection timeout in milliseconds. |
Sub P2P_SetConnectionTimeout(ByVal Handle As IntPtr, ByVal Value As Integer)
The ConnectionTimeout(Handle,value) syntax has these parts:
Function P2P_GetConnectionTimeout(ByVal Handle As IntPtr) As Integer
The ConnectionTimeout(Handle) syntax has these parts:
The ConnectionTimeout(Handle,value) syntax has these parts:
Handle | Reference to the devP2P instance. |
value | Integer value representing connection timeout in milliseconds. |
Function P2P_GetConnectionTimeout(ByVal Handle As IntPtr) As Integer
The ConnectionTimeout(Handle) syntax has these parts:
Handle | Reference to the devP2P instance. |
Return value | Current value for ConnectionTimeout property. |
Remarks
ConnectionTimeout property defines total number of milliseconds that remote peer is idle before connection is dropped for inactivity. devP2P sends "keep alive" PING packet each second after certain period of inactivity, but expects from remote side to do the same. If no packet is received for defined ConnectionTimeout value, local devP2P peer will close the connection and fire Stopped event.Platforms
Mac OSXLinux
BSD