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

Create Client Example #8

Open
AceHack opened this issue Sep 26, 2018 · 4 comments
Open

Create Client Example #8

AceHack opened this issue Sep 26, 2018 · 4 comments

Comments

@AceHack
Copy link

AceHack commented Sep 26, 2018

Please create a high-performance client example that can use Pipelines or similar as well, this is really just the server.

@AceHack
Copy link
Author

AceHack commented Sep 26, 2018

Here is a gist of a client
https://gist.github.com/AceHack/786e558f14b2d9c0d46a1ea330c158f7

There are a few things I don't like, really need some ReadOnlySequence overloads.

System.Net.Sockets.Socket
{
    public ValueTask<int> SendAsync(ReadOnlySequence<byte> buffer, SocketFlags socketFlags, CancellationToken cancellationToken = default(CancellationToken))
}

System.Text.Encoding
{
    public string GetString(ReadOnlySequence<byte> bytes)
}

@davidfowl
Copy link
Owner

@AceHack do you want to send a PR with a basic client for this server? It'll serve as a sample that people can use/copy.

@knocte
Copy link

knocte commented Jun 2, 2019

This issue has been fixed in this PR: #16

knocte added a commit to knocte/TcpEcho that referenced this issue Jul 2, 2019
Make tcp connections timeout after 1sec
@AceHack
Copy link
Author

AceHack commented Jan 6, 2020

Do you still need a client that uses pipelines? If so I can spend some time and create a PR?

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