|
|
|
@ -107,11 +107,18 @@ namespace IEC61850.Server
|
|
|
|
|
[return: MarshalAs(UnmanagedType.I1)]
|
|
|
|
|
static extern bool IedServerConfig_isLogServiceEnabled(IntPtr self);
|
|
|
|
|
|
|
|
|
|
[DllImport("iec61850", CallingConvention = CallingConvention.Cdecl)]
|
|
|
|
|
static extern void IedServerConfig_enableResvTmsForBRCB(IntPtr self, [MarshalAs(UnmanagedType.I1)] bool enable);
|
|
|
|
|
|
|
|
|
|
[DllImport("iec61850", CallingConvention = CallingConvention.Cdecl)]
|
|
|
|
|
[return: MarshalAs(UnmanagedType.I1)]
|
|
|
|
|
static extern bool IedServerConfig_isResvTmsForBRCBEnabled(IntPtr self);
|
|
|
|
|
|
|
|
|
|
internal IntPtr self;
|
|
|
|
|
|
|
|
|
|
public IedServerConfig ()
|
|
|
|
|
public IedServerConfig()
|
|
|
|
|
{
|
|
|
|
|
self = IedServerConfig_create ();
|
|
|
|
|
self = IedServerConfig_create();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
@ -120,11 +127,13 @@ namespace IEC61850.Server
|
|
|
|
|
/// <value>The size of the report buffer.</value>
|
|
|
|
|
public int ReportBufferSize
|
|
|
|
|
{
|
|
|
|
|
get {
|
|
|
|
|
return IedServerConfig_getReportBufferSize (self);
|
|
|
|
|
get
|
|
|
|
|
{
|
|
|
|
|
return IedServerConfig_getReportBufferSize(self);
|
|
|
|
|
}
|
|
|
|
|
set {
|
|
|
|
|
IedServerConfig_setReportBufferSize (self, value);
|
|
|
|
|
set
|
|
|
|
|
{
|
|
|
|
|
IedServerConfig_setReportBufferSize(self, value);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -150,11 +159,13 @@ namespace IEC61850.Server
|
|
|
|
|
/// <value>The file service base path.</value>
|
|
|
|
|
public string FileServiceBasePath
|
|
|
|
|
{
|
|
|
|
|
get {
|
|
|
|
|
return Marshal.PtrToStringAnsi (IedServerConfig_getFileServiceBasePath (self));
|
|
|
|
|
get
|
|
|
|
|
{
|
|
|
|
|
return Marshal.PtrToStringAnsi(IedServerConfig_getFileServiceBasePath(self));
|
|
|
|
|
}
|
|
|
|
|
set {
|
|
|
|
|
IedServerConfig_setFileServiceBasePath (self, value);
|
|
|
|
|
set
|
|
|
|
|
{
|
|
|
|
|
IedServerConfig_setFileServiceBasePath(self, value);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -180,11 +191,13 @@ namespace IEC61850.Server
|
|
|
|
|
/// <value>The IEC 61850 edition to use.</value>
|
|
|
|
|
public Iec61850Edition Edition
|
|
|
|
|
{
|
|
|
|
|
get {
|
|
|
|
|
return (Iec61850Edition)IedServerConfig_getEdition (self);
|
|
|
|
|
get
|
|
|
|
|
{
|
|
|
|
|
return (Iec61850Edition)IedServerConfig_getEdition(self);
|
|
|
|
|
}
|
|
|
|
|
set {
|
|
|
|
|
IedServerConfig_setEdition (self, (byte) value);
|
|
|
|
|
set
|
|
|
|
|
{
|
|
|
|
|
IedServerConfig_setEdition(self, (byte)value);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -194,11 +207,13 @@ namespace IEC61850.Server
|
|
|
|
|
/// <value>The max number of MMS client connections.</value>
|
|
|
|
|
public int MaxMmsConnections
|
|
|
|
|
{
|
|
|
|
|
get {
|
|
|
|
|
return IedServerConfig_getMaxMmsConnections (self);
|
|
|
|
|
get
|
|
|
|
|
{
|
|
|
|
|
return IedServerConfig_getMaxMmsConnections(self);
|
|
|
|
|
}
|
|
|
|
|
set {
|
|
|
|
|
IedServerConfig_setMaxMmsConnections (self, value);
|
|
|
|
|
set
|
|
|
|
|
{
|
|
|
|
|
IedServerConfig_setMaxMmsConnections(self, value);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -208,11 +223,13 @@ namespace IEC61850.Server
|
|
|
|
|
/// <value><c>true</c> if dynamic data set service enabled; otherwise, <c>false</c>.</value>
|
|
|
|
|
public bool DynamicDataSetServiceEnabled
|
|
|
|
|
{
|
|
|
|
|
get {
|
|
|
|
|
return IedServerConfig_isDynamicDataSetServiceEnabled (self);
|
|
|
|
|
get
|
|
|
|
|
{
|
|
|
|
|
return IedServerConfig_isDynamicDataSetServiceEnabled(self);
|
|
|
|
|
}
|
|
|
|
|
set {
|
|
|
|
|
IedServerConfig_enableDynamicDataSetService (self, value);
|
|
|
|
|
set
|
|
|
|
|
{
|
|
|
|
|
IedServerConfig_enableDynamicDataSetService(self, value);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -222,11 +239,13 @@ namespace IEC61850.Server
|
|
|
|
|
/// <value>The max. number data set entries.</value>
|
|
|
|
|
public int MaxDataSetEntries
|
|
|
|
|
{
|
|
|
|
|
get {
|
|
|
|
|
return IedServerConfig_getMaxDatasSetEntries (self);
|
|
|
|
|
get
|
|
|
|
|
{
|
|
|
|
|
return IedServerConfig_getMaxDatasSetEntries(self);
|
|
|
|
|
}
|
|
|
|
|
set {
|
|
|
|
|
IedServerConfig_setMaxDataSetEntries (self, value);
|
|
|
|
|
set
|
|
|
|
|
{
|
|
|
|
|
IedServerConfig_setMaxDataSetEntries(self, value);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -236,11 +255,13 @@ namespace IEC61850.Server
|
|
|
|
|
/// <value>The max. number of association specific data sets.</value>
|
|
|
|
|
public int MaxAssociationSpecificDataSets
|
|
|
|
|
{
|
|
|
|
|
get {
|
|
|
|
|
return IedServerConfig_getMaxAssociationSpecificDataSets (self);
|
|
|
|
|
get
|
|
|
|
|
{
|
|
|
|
|
return IedServerConfig_getMaxAssociationSpecificDataSets(self);
|
|
|
|
|
}
|
|
|
|
|
set {
|
|
|
|
|
IedServerConfig_setMaxAssociationSpecificDataSets (self, value);
|
|
|
|
|
set
|
|
|
|
|
{
|
|
|
|
|
IedServerConfig_setMaxAssociationSpecificDataSets(self, value);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -250,11 +271,13 @@ namespace IEC61850.Server
|
|
|
|
|
/// <value>The max. numebr of domain specific data sets.</value>
|
|
|
|
|
public int MaxDomainSpecificDataSets
|
|
|
|
|
{
|
|
|
|
|
get {
|
|
|
|
|
return IedServerConfig_getMaxDomainSpecificDataSets (self);
|
|
|
|
|
get
|
|
|
|
|
{
|
|
|
|
|
return IedServerConfig_getMaxDomainSpecificDataSets(self);
|
|
|
|
|
}
|
|
|
|
|
set {
|
|
|
|
|
IedServerConfig_setMaxDomainSpecificDataSets (self, value);
|
|
|
|
|
set
|
|
|
|
|
{
|
|
|
|
|
IedServerConfig_setMaxDomainSpecificDataSets(self, value);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -274,6 +297,22 @@ namespace IEC61850.Server
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Enable/Disable the presence of ResvTms attribute in BRCBs (buffered report control blocks)
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <value><c>true</c> if BRCB has ResvTms; otherwise, <c>false</c>.</value>
|
|
|
|
|
public bool BRCBHasResvTms
|
|
|
|
|
{
|
|
|
|
|
get
|
|
|
|
|
{
|
|
|
|
|
return IedServerConfig_isResvTmsForBRCBEnabled(self);
|
|
|
|
|
}
|
|
|
|
|
set
|
|
|
|
|
{
|
|
|
|
|
IedServerConfig_enableResvTmsForBRCB(self, value);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Releases all resource used by the <see cref="IEC61850.Server.IedServerConfig"/> object.
|
|
|
|
|
/// </summary>
|
|
|
|
@ -284,9 +323,11 @@ namespace IEC61850.Server
|
|
|
|
|
/// <see cref="IEC61850.Server.IedServerConfig"/> was occupying.</remarks>
|
|
|
|
|
public void Dispose()
|
|
|
|
|
{
|
|
|
|
|
lock (this) {
|
|
|
|
|
if (self != IntPtr.Zero) {
|
|
|
|
|
IedServerConfig_destroy (self);
|
|
|
|
|
lock (this)
|
|
|
|
|
{
|
|
|
|
|
if (self != IntPtr.Zero)
|
|
|
|
|
{
|
|
|
|
|
IedServerConfig_destroy(self);
|
|
|
|
|
self = IntPtr.Zero;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
@ -294,7 +335,7 @@ namespace IEC61850.Server
|
|
|
|
|
|
|
|
|
|
~IedServerConfig()
|
|
|
|
|
{
|
|
|
|
|
Dispose ();
|
|
|
|
|
Dispose();
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|