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