/// <summary> /// Start EPM server /// Make sure 135 port is shut down, Or other trying to start EPM will fail. /// </summary> /// <param name="endpointMapper">A mapper from interface to endpoint, ipv4 only for now</param> /// <param name="host">The host IP address</param> public static void Start(IDictionary <p_syntax_id_t, ushort> endpointMapper, IPAddress host) { endpointMap = new Dictionary <p_syntax_id_t, ushort>(endpointMapper); epmServer = new RpceServerTransport(); epmThread = new Thread(epmReceiveLoop); hostIp = host; epmServer.RegisterInterface(eptInterfaceUuid, eptInterfaceMajorVersion, eptInterfaceMinorVersion); epmServer.StartTcp(eptEndpoint); epmThread.Start(); }
/// <summary> /// Start EPM server /// Make sure 135 port is shut down, Or other trying to start EPM will fail. /// </summary> /// <param name="endpointMapper">A mapper from interface to endpoint, ipv4 only for now</param> /// <param name="host">The host IP address</param> public static void Start(IDictionary<p_syntax_id_t, ushort> endpointMapper, IPAddress host) { endpointMap = new Dictionary<p_syntax_id_t, ushort>(endpointMapper); epmServer = new RpceServerTransport(); epmThread = new Thread(epmReceiveLoop); hostIp = host; epmServer.RegisterInterface(eptInterfaceUuid, eptInterfaceMajorVersion, eptInterfaceMinorVersion); epmServer.StartTcp(eptEndpoint); epmThread.Start(); }