示例#1
0
            public IedServer(IedModel iedModel, IedServerConfig config = null)
            {
                IntPtr nativeConfig = IntPtr.Zero;

                if (config != null)
                {
                    nativeConfig = config.self;
                }

                self = IedServer_createWithConfig(iedModel.self, IntPtr.Zero, nativeConfig);
            }
示例#2
0
            public IedServer(IedModel iedModel, TLSConfiguration tlsConfig, IedServerConfig config = null)
            {
                IntPtr nativeConfig    = IntPtr.Zero;
                IntPtr nativeTLSConfig = IntPtr.Zero;

                if (config != null)
                {
                    nativeConfig = config.self;
                }

                if (tlsConfig != null)
                {
                    nativeTLSConfig = tlsConfig.GetNativeInstance();
                }

                self = IedServer_createWithConfig(iedModel.self, nativeTLSConfig, nativeConfig);
            }