/// <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); }
/// <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; }
/// <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; }
static extern void IedServer_setConnectionIndicationHandler(IntPtr self, InternalConnectionHandler handler, IntPtr parameter);