Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a way for a ServerGate to chose its own port #18

Open
TheAIBot opened this issue Jan 12, 2018 · 1 comment
Open

Add a way for a ServerGate to chose its own port #18

TheAIBot opened this issue Jan 12, 2018 · 1 comment

Comments

@TheAIBot
Copy link

It's currently not feasible to have more than one instance of your jSpace program open because there is really no other way to handle creating a ServerGate than to hardcode the port.

So i would really like to be able to do something like this:

SpaceRepository rep = new SpaceRepository();
final int portUsed = rep.addGate("tcp://127.0.0.1:/?conn");

To add a gate without a specific port in mind, the port is simply omitted from the URI. addGate would then have to be changed to return the port that the socket chose to use.
How the port is then transfered to the RemoteSpace is still a hassle but another issue will tackle that problem.

@albertolluch
Copy link
Member

yes, also this feature is interesting, good point @TheAIBot . We will keep it in mind.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants