Removing Endpoint from the server.
Posted: Thu Aug 22, 2013 10:30 am
Hi,
I’m trying to connect a Merto/Windows8 tile/WindowsStore client application with locally installed RCF server. The problem is Metro applications are generally not allowed to communicate via localhost. There is no sense to discuss “why so”. It’s just one of the Microsoft limitations. So, I’m trying to establish the local communication via a regular (not loopback) network interface. Typically any computer has a network connection, so a non-loopback interface should be available always.
So the server should listen (has a TCP style endpoint) on a (say so) 192.168.1.x.
The problem is that the 192.168.1.x is potentially mutable. The computer can be later connected to a different router/network or so. Anyway I can’t rely on DHCP lease always.
As the result I have to call server->addEndpoint() everytime the IP is changed.
Obviously there is a wish to remove the previous (useless hereafter) endpoint.
How could I do that?
Or, taking into account the IP changes should not be often, I could just accumulate the endpoints and there should be no any significant resource leakage?
I could try to call removeservice (after making it public), but how I could identify which service to remove. I have to have some other static RCF endppoints/listeners beyond the mutable 192.168.1.x
Thank you
I’m trying to connect a Merto/Windows8 tile/WindowsStore client application with locally installed RCF server. The problem is Metro applications are generally not allowed to communicate via localhost. There is no sense to discuss “why so”. It’s just one of the Microsoft limitations. So, I’m trying to establish the local communication via a regular (not loopback) network interface. Typically any computer has a network connection, so a non-loopback interface should be available always.
So the server should listen (has a TCP style endpoint) on a (say so) 192.168.1.x.
The problem is that the 192.168.1.x is potentially mutable. The computer can be later connected to a different router/network or so. Anyway I can’t rely on DHCP lease always.
As the result I have to call server->addEndpoint() everytime the IP is changed.
Obviously there is a wish to remove the previous (useless hereafter) endpoint.
How could I do that?
Or, taking into account the IP changes should not be often, I could just accumulate the endpoints and there should be no any significant resource leakage?
I could try to call removeservice (after making it public), but how I could identify which service to remove. I have to have some other static RCF endppoints/listeners beyond the mutable 192.168.1.x
Thank you