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

[Net] Make TCP poll explicit, drop is_connected_to_host. #59582

Merged
merged 2 commits into from
Apr 27, 2022

Conversation

Faless
Copy link
Collaborator

@Faless Faless commented Mar 27, 2022

In this PR:

  • Make StreamPeerTCP::_poll_connection explicit.
    No longer hacked into get_status and renamed to poll.
    The old poll (for *nix poll, win select) is now called wait.

  • Drop is_connected_to_host for TCP and UDP.
    The UDP method is now called is_socket_connected to limit confusion with the actual host connection status which doesn't make sense in UDP.
    The TCP method is completly dropped, just use get_status instead.
    The only one left is the WebSocketPeer one, which should be fine as is for now.

Fixes #22605
Fixes #18323

No longer hacked into `get_status` and renamed to `poll`.

The old `poll` (for *nix `poll`, win `select`) is now called `wait`.
The UDP method is now called `is_socket_connected` to limit confusion
with the actual host connection status which doesn't make sense in UDP.

The TCP method is completly dropped, use get_status instead.

The only one left is the WebSocketPeer one, which should be fine as is
for now.
@akien-mga akien-mga merged commit 6e6fe2b into godotengine:master Apr 27, 2022
@akien-mga
Copy link
Member

Thanks!

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