Ejemplo n.º 1
0
            /// <summary>Start MMS server</summary>
            /// <param name="tcpPort">TCP port to use</param>
            public void Start(int tcpPort)
            {
                if (internalConnectionHandler == null)
                {
                    internalConnectionHandler = new InternalConnectionHandler(connectionIndicationHandler);
                }

                IedServer_setConnectionIndicationHandler(self, internalConnectionHandler, IntPtr.Zero);

                IedServer_start(self, tcpPort);
            }
Ejemplo n.º 2
0
 /// <summary>
 /// Release all server resources.
 /// </summary>
 /// <description>This function releases all MMS server resources.</description>
 public void Destroy()
 {
     IedServer_destroy(self);
     self = IntPtr.Zero;
     internalConnectionHandler = null;
 }
Ejemplo n.º 3
0
 /// <summary>
 /// Stop the MMS server.
 /// </summary>
 /// <description>This function will stop the server. This will close the TCP server socket and all client sockets.</description>
 public void Stop()
 {
     IedServer_stop(self);
     internalConnectionHandler = null;
 }
Ejemplo n.º 4
0
 static extern void IedServer_setConnectionIndicationHandler(IntPtr self, InternalConnectionHandler handler, IntPtr parameter);