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

Implement getsockname and poll socket functions #2587

Closed
MmAaXx500 opened this issue Apr 11, 2021 · 0 comments
Closed

Implement getsockname and poll socket functions #2587

MmAaXx500 opened this issue Apr 11, 2021 · 0 comments

Comments

@MmAaXx500
Copy link

Describe the project you are working on

I'm currently working on a multiplayer game which uses STUN to get around the limitations of NAT.

Describe the problem or limitation you are having in your project

getsockname: In the implementation I needed to be aware of what address the socket is bound to.
poll: I needed to set a timeout on receiving operations using an EnetSocket. So I need poll.

Describe the feature / enhancement and how it helps to overcome the problem or limitation

See above.

Describe how your proposal will work, with code, pseudo-code, mock-ups, and/or diagrams

Probably obvious. Using platform's and Godot's socket functions.
Here is the pull request: godotengine/godot#41600

If this enhancement will not be used often, can it be worked around with a few lines of script?

No it's can't be worked around because it's a core feature.

Is there a reason why this should be core and not an add-on in the asset library?

Yes! Because it's a core feature. I know no other ways to do this.

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

Successfully merging a pull request may close this issue.

2 participants