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

Port advertise servers to RepyV2 #30

Open
aaaaalbert opened this issue Sep 5, 2014 · 4 comments
Open

Port advertise servers to RepyV2 #30

aaaaalbert opened this issue Sep 5, 2014 · 4 comments
Assignees

Comments

@aaaaalbert
Copy link
Contributor

udpadvertiseserver and advertiseserver.mix both use RepyV1. Port them to use the new API, and adapt the build scripts (currently broken due to conflicting Repy versions) accordingly.

See also #31 before you start coding!

@XuefengHuang
Copy link

I have ported udpadvertiseserver to use RepyV2. This is my code: https://github.com/XuefengHuang/advertiseserver/blob/repyv2/udpadvertiseserver.r2py But when I test it, it raises a error:

User traceback:
  "dylink.r2py", line 546, in <module>
  "dylink.r2py", line 407, in dylink_dispatch
  "dylink.r2py", line 520, in evaluate
  "udpadvertiseserver.r2py", line 317, in <module>

Exception (with class 'exception_hierarchy.ResourceForbiddenError'): Provided localport 
is not allowed! Port: 10102

I find that it is raised by listenformessage(localip, localport). I don't know how to fix it... Maybe I should do something before testing it?

@asm582
Copy link

asm582 commented Jan 4, 2015

I think you can try this by using UDP port mentioned in restrictions file, it may work..

@XuefengHuang
Copy link

@asm582 Thanks! It works!

@aaaaalbert
Copy link
Contributor Author

This is worth considering for inclusing in the next clearinghouse update.

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

No branches or pull requests

3 participants