9 writes to _socketAddress
System.Net.Sockets (9)
System\Net\Sockets\Socket.cs (4)
2938
e.
_socketAddress
= Serialize(ref endPointSnapshot);
3119
e.
_socketAddress
??= new SocketAddress(AddressFamily);
3166
e.
_socketAddress
= Serialize(ref endPointSnapshot);
3274
e.
_socketAddress
= Serialize(ref endPointSnapshot);
System\Net\Sockets\Socket.Tasks.cs (4)
417
saea.
_socketAddress
= new SocketAddress(AddressFamily);
457
saea.
_socketAddress
= receivedAddress;
710
saea.
_socketAddress
= socketAddress;
720
saea.
_socketAddress
= null;
System\Net\Sockets\SocketAsyncEventArgs.cs (1)
960
_socketAddress
= null;
32 references to _socketAddress
System.Net.Sockets (32)
System\Net\Sockets\Socket.cs (6)
2944
e.ConnectActivity = SocketsTelemetry.Log.ConnectStart(e.
_socketAddress
!, _protocolType, endPointSnapshot, keepActivityCurrent: true);
3095
if (e.
_socketAddress
== null)
3261
if (endPointSnapshot == null && e.
_socketAddress
== null)
3266
if (e.
_socketAddress
!= null && endPointSnapshot is IPEndPoint ipep && e.
_socketAddress
.Family == endPointSnapshot?.AddressFamily)
3269
ipep.Serialize(e.
_socketAddress
.Buffer.Span);
System\Net\Sockets\SocketAsyncEventArgs.cs (12)
956
UpdateReceivedSocketAddress(
_socketAddress
!);
962
else if (!SocketAddressExtensions.Equals(
_socketAddress
!, _remoteEndPoint))
966
if (_remoteEndPoint!.AddressFamily == AddressFamily.InterNetworkV6 &&
_socketAddress
!.Family == AddressFamily.InterNetwork)
968
_remoteEndPoint = new IPEndPoint(
_socketAddress
.GetIPAddress().MapToIPv6(),
_socketAddress
.GetPort());
972
_remoteEndPoint = _remoteEndPoint!.Create(
_socketAddress
!);
983
UpdateReceivedSocketAddress(
_socketAddress
!);
984
if (!SocketAddressExtensions.Equals(
_socketAddress
!, _remoteEndPoint))
988
if (_remoteEndPoint!.AddressFamily == AddressFamily.InterNetworkV6 &&
_socketAddress
!.Family == AddressFamily.InterNetwork)
990
_remoteEndPoint = new IPEndPoint(
_socketAddress
.GetIPAddress().MapToIPv6(),
_socketAddress
.GetPort());
994
_remoteEndPoint = _remoteEndPoint!.Create(
_socketAddress
!);
System\Net\Sockets\SocketAsyncEventArgs.Unix.cs (14)
76
SocketError socketError = handle.AsyncContext.ConnectAsync(
_socketAddress
!.Buffer, ConnectCompletionCallback, _buffer.Slice(_offset, _count), out int sentBytes);
86
SocketError socketError = handle.AsyncContext.ConnectAsync(
_socketAddress
!.Buffer, ConnectCompletionCallback, Memory<byte>.Empty, out int _);
164
errorCode = handle.AsyncContext.ReceiveFromAsync(_buffer.Slice(_offset, _count), _socketFlags,
_socketAddress
!.Buffer, out socketAddressLen, out bytesReceived, out flags, TransferCompletionCallback, cancellationToken);
168
errorCode = handle.AsyncContext.ReceiveFromAsync(_bufferListInternal!, _socketFlags,
_socketAddress
!.Buffer, out socketAddressLen, out bytesReceived, out flags, TransferCompletionCallback);
173
CompleteTransferOperation(
_socketAddress
.Buffer, socketAddressLen, flags);
203
Socket.GetIPProtocolInformation(socket.AddressFamily,
_socketAddress
!, out isIPv4, out isIPv6);
205
int socketAddressSize =
_socketAddress
!.Buffer.Length;
209
SocketError socketError = handle.AsyncContext.ReceiveMessageFromAsync(_buffer.Slice(_offset, _count), _bufferListInternal, _socketFlags,
_socketAddress
.Buffer, out socketAddressSize, isIPv4, isIPv6, out bytesReceived, out receivedFlags, out ipPacketInformation, ReceiveMessageFromCompletionCallback, cancellationToken);
212
_socketAddress
.Size = socketAddressSize;
213
CompleteReceiveMessageFromOperation(
_socketAddress
.Buffer, socketAddressSize, receivedFlags, ipPacketInformation);
312
errorCode = handle.AsyncContext.SendToAsync(_buffer, _offset, _count, _socketFlags,
_socketAddress
!.Buffer, ref bytesSent, TransferCompletionCallback, cancellationToken);
316
errorCode = handle.AsyncContext.SendToAsync(_bufferListInternal!, _socketFlags,
_socketAddress
!.Buffer, out bytesSent, TransferCompletionCallback);
321
CompleteTransferOperation(
_socketAddress
.Buffer,
_socketAddress
.Size, SocketFlags.None);