Skip to content
This repository was archived by the owner on Jan 23, 2023. It is now read-only.

Conversation

@stephentoub
Copy link
Member

  • Separate the type out into its own file, to make it easier for others to consume
  • Fix a bug that prohbited it from being used with Accept (removed min length validation in ctor)
  • Added a test that does Connect/Accept and Send/Receive
  • A few other cleanups in the existing tests

As a follow-on to #5051, fixes #4588.
cc: @IlyaBiryukov, @pgavlin, @ericeil

- Separate the type out into its own file, to make it easier for others to consume
- Fix a bug that prohbited it from being used with Accept (removed min length validation in ctor)
- Added a test that does Connect/Accept and Send/Receive
- A few other cleanups in the existing tests
@IlyaBiryukov
Copy link
Contributor

LGTM

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Are you sure UTF-8 is appropriate here? Maybe ASCII? It's not clear to me from the man page how this should be handled...

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Most encoding on Unix systems defaults to UTF8. Unless otherwise stated, I believe it's the right choice.

@ericeil
Copy link
Contributor

ericeil commented Jan 15, 2016

LGTM, assuming UTF-8 is the right encoding.

@stephentoub
Copy link
Member Author

Thanks, guys.

@pgavlin
Copy link
Contributor

pgavlin commented Jan 15, 2016

LGTM as well. UTF8 is correct AFAIK.

stephentoub added a commit that referenced this pull request Jan 15, 2016
Clean up Unix Domain Sockets example
@stephentoub stephentoub merged commit 97c00f6 into dotnet:master Jan 15, 2016
@stephentoub stephentoub deleted the domain_sockets branch January 15, 2016 03:14
@karelz karelz modified the milestone: 1.0.0-rtm Dec 3, 2016
@karelz karelz added the os-linux Linux OS (any supported distro) label Mar 8, 2017
picenka21 pushed a commit to picenka21/runtime that referenced this pull request Feb 18, 2022
Clean up Unix Domain Sockets example

Commit migrated from dotnet/corefx@97c00f6
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

area-System.Net os-linux Linux OS (any supported distro)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Enable Unix domain sockets to be used via System.Net.Sockets

7 participants