- added MmsConnection.setLocalDetail and MmsConnection.getLocalDetail to C# API

pull/6/head
Michael Zillgith 10 years ago
parent 5637f837a3
commit bc65ce46c6

@ -62,6 +62,13 @@ namespace IEC61850
[DllImport ("iec61850", CallingConvention=CallingConvention.Cdecl)]
private static extern void MmsServerIdentity_destroy(IntPtr self);
[DllImport ("iec61850", CallingConvention=CallingConvention.Cdecl)]
private static extern void MmsConnection_setLocalDetail (IntPtr self, Int32 localDetail);
[DllImport ("iec61850", CallingConvention=CallingConvention.Cdecl)]
private static extern Int32 MmsConnection_getLocalDetail (IntPtr self);
private IntPtr self = IntPtr.Zero;
private bool selfDestroy = false;
@ -100,6 +107,14 @@ namespace IEC61850
return serverIdentity;
}
public void SetLocalDetail(int localDetail) {
MmsConnection_setLocalDetail (self, localDetail);
}
public int GetLocalDetail() {
return MmsConnection_getLocalDetail (self);
}
}
/// <summary>

@ -28,8 +28,12 @@ namespace example3
con.ConnectTimeout = 10000;
con.GetMmsConnection().SetLocalDetail(1200);
con.Connect(hostname, 102);
Console.WriteLine("Negotiated PDU size: " + con.GetMmsConnection().GetLocalDetail());
List<string> serverDirectory = con.GetServerDirectory(false);
foreach (string entry in serverDirectory)

Loading…
Cancel
Save