-
Notifications
You must be signed in to change notification settings - Fork 5.3k
Closed
Labels
area-System.Net.QuicenhancementProduct code improvement that does NOT require public API changes/additionsProduct code improvement that does NOT require public API changes/additions
Milestone
Description
Instead of reimplementing sockaddr serialization, we should use the existing EndPoint -> SocketAddress -> byte[] logic in System.Net.Primitives.
Lines 27 to 31 in 5c6f5b1
| internal static SOCKADDR_INET IPEndPointToINet(IPEndPoint endpoint) | |
| { | |
| SOCKADDR_INET socketAddress = default; | |
| byte[] buffer = endpoint.Address.GetAddressBytes(); | |
| if (endpoint.Address != IPAddress.Any && endpoint.Address != IPAddress.IPv6Any) |
Metadata
Metadata
Assignees
Labels
area-System.Net.QuicenhancementProduct code improvement that does NOT require public API changes/additionsProduct code improvement that does NOT require public API changes/additions