Skip to content

Examples: Improve Echo Example Consistency #7256

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

Merged
merged 9 commits into from
Apr 18, 2025

Conversation

nskins
Copy link
Contributor

@nskins nskins commented Apr 11, 2025

Motivation

This addresses the suggestion brought up in #7250.

Solution

This PR splits up connect.rs into two separate programs: connect-tcp.rs and connect-udp.rs. This matches the echo examples which are split up by protocol already. This should improve readability and ease of understanding so end users only need to consider one protocol at a time.

Additionally, documentation referencing these new example names has been updated appropriately. I tested these changes by running all examples that interact with these files and verifying that the behavior is the same as before.

Closes: #7250

@nskins nskins changed the title Improve Echo Example Consistency Examples: Improve Echo Example Consistency Apr 12, 2025
@maminrayej maminrayej added the A-examples Area: The examples label Apr 14, 2025
@maminrayej
Copy link
Member

Thanks.

@maminrayej maminrayej merged commit 1434b32 into tokio-rs:master Apr 18, 2025
83 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-examples Area: The examples
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Improve Consistency for Echo Example Programs
2 participants