Adds synchronous span APIs for datagram sockets. (#51956)
authorPieter-Jan Briers <pieterjan.briers+git@gmail.com>
Mon, 10 May 2021 10:12:04 +0000 (12:12 +0200)
committerGitHub <noreply@github.com>
Mon, 10 May 2021 10:12:04 +0000 (12:12 +0200)
commitdcb42e861e3343e7a9825c3eba5d8a8edba4ab65
tree680a9669a9eac1430d32ef004dcf6c0c3e7a81bf
parent119785100b1ce36cffcf0caf2cc3e23cce32b222
Adds synchronous span APIs for datagram sockets. (#51956)

* Adds synchronous span APIs for datagram sockets.

Part of #33418/#938

* Doc comments for new APIs.

* Fix review nits.

* Add 0-byte send tests.
src/libraries/System.Net.Sockets/ref/System.Net.Sockets.cs
src/libraries/System.Net.Sockets/src/System/Net/Sockets/Socket.cs
src/libraries/System.Net.Sockets/src/System/Net/Sockets/SocketPal.Unix.cs
src/libraries/System.Net.Sockets/src/System/Net/Sockets/SocketPal.Windows.cs
src/libraries/System.Net.Sockets/tests/FunctionalTests/SendReceive/SendReceive.cs
src/libraries/System.Net.Sockets/tests/FunctionalTests/SocketTestHelper.cs