@ -425,6 +425,12 @@ namespace IEC61850
[DllImport("iec61850", CallingConvention = CallingConvention.Cdecl)]
static extern void IedConnection_setConnectTimeout ( IntPtr self , UInt32 timeoutInMs ) ;
[DllImport("iec61850", CallingConvention = CallingConvention.Cdecl)]
static extern void IedConnection_setRequestTimeout ( IntPtr self , UInt32 timeoutInMs ) ;
[DllImport("iec61850", CallingConvention = CallingConvention.Cdecl)]
static extern UInt32 IedConnection_getRequestTimeout ( IntPtr self ) ;
[DllImport("iec61850", CallingConvention = CallingConvention.Cdecl)]
static extern void IedConnection_connect ( IntPtr self , out int error , string hostname , int tcpPort ) ;
@ -769,6 +775,22 @@ namespace IEC61850
}
}
/// <summary>
/// Gets or sets the request timeout for this connection
/// </summary>
/// <value>The request timeout in milliseconds</value>
public UInt32 RequestTimeout
{
get
{
return IedConnection_getRequestTimeout ( connection ) ;
}
set
{
IedConnection_setRequestTimeout ( connection , value ) ;
}
}
/// <summary>
/// Gets or sets the maximum size if a PDU (has to be set before calling connect!).
/// </summary>