1 instantiation of IPPacketInformation
System.Net.Sockets (1)
System\Net\Sockets\SocketPal.Unix.cs (1)
56return new IPPacketInformation(nativePacketInfo.Address.GetIPAddress(), nativePacketInfo.InterfaceIndex);
43 references to IPPacketInformation
netstandard (1)
netstandard.cs (1)
1258[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Net.Sockets.IPPacketInformation))]
System (1)
src\libraries\shims\System\ref\System.cs (1)
748[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Net.Sockets.IPPacketInformation))]
System.Net.Sockets (41)
System\Net\Sockets\IPPacketInformation.cs (7)
8public struct IPPacketInformation : IEquatable<IPPacketInformation> 23public static bool operator ==(IPPacketInformation packetInformation1, IPPacketInformation packetInformation2) => 26public static bool operator !=(IPPacketInformation packetInformation1, IPPacketInformation packetInformation2) => 30comparand is IPPacketInformation other && Equals(other); 35public bool Equals(IPPacketInformation other) =>
System\Net\Sockets\Socket.cs (5)
1665public int ReceiveMessageFrom(byte[] buffer, int offset, int size, ref SocketFlags socketFlags, ref EndPoint remoteEP, out IPPacketInformation ipPacketInformation) 1731/// An <see cref="IPPacketInformation"/> holding address and interface information. 1739/// <see cref="Socket.ReceiveMessageFrom(Span{byte}, ref SocketFlags, ref EndPoint, out IPPacketInformation)"/> 1744public int ReceiveMessageFrom(Span<byte> buffer, ref SocketFlags socketFlags, ref EndPoint remoteEP, out IPPacketInformation ipPacketInformation) 2686public int EndReceiveMessageFrom(IAsyncResult asyncResult, ref SocketFlags socketFlags, ref EndPoint endPoint, out IPPacketInformation ipPacketInformation)
System\Net\Sockets\Socket.Tasks.cs (2)
1131IPPacketInformation packetInformation = ReceiveMessageFromPacketInfo; 1361IPPacketInformation packetInformation = ReceiveMessageFromPacketInfo;
System\Net\Sockets\SocketAsyncContext.Unix.cs (9)
566public IPPacketInformation IPPacketInformation; 570public Action<int, Memory<byte>, SocketFlags, IPPacketInformation, SocketError>? Callback { get; set; } 596public IPPacketInformation IPPacketInformation; 600public Action<int, Memory<byte>, SocketFlags, IPPacketInformation, SocketError>? Callback { get; set; } 1813Memory<byte> buffer, ref SocketFlags flags, Memory<byte> socketAddress, out int socketAddressLen, bool isIPv4, bool isIPv6, int timeout, out IPPacketInformation ipPacketInformation, out int bytesReceived) 1850Span<byte> buffer, ref SocketFlags flags, Memory<byte> socketAddress, out int socketAddressLen, bool isIPv4, bool isIPv6, int timeout, out IPPacketInformation ipPacketInformation, out int bytesReceived) 1889public SocketError ReceiveMessageFromAsync(Memory<byte> buffer, IList<ArraySegment<byte>>? buffers, SocketFlags flags, Memory<byte> socketAddress, out int socketAddressLen, bool isIPv4, bool isIPv6, out int bytesReceived, out SocketFlags receivedFlags, out IPPacketInformation ipPacketInformation, Action<int, Memory<byte>, SocketFlags, IPPacketInformation, SocketError> callback, CancellationToken cancellationToken = default) 1921ipPacketInformation = default(IPPacketInformation);
System\Net\Sockets\SocketAsyncEventArgs.cs (2)
40private IPPacketInformation _receiveMessageFromPacketInfo; 253public IPPacketInformation ReceiveMessageFromPacketInfo
System\Net\Sockets\SocketAsyncEventArgs.Unix.cs (4)
180private void ReceiveMessageFromCompletionCallback(int bytesTransferred, Memory<byte> socketAddress, SocketFlags receivedFlags, IPPacketInformation ipPacketInformation, SocketError errorCode) 187private void CompleteReceiveMessageFromOperation(Memory<byte> socketAddress, int socketAddressSize, SocketFlags receivedFlags, IPPacketInformation ipPacketInformation) 198_receiveMessageFromPacketInfo = default(IPPacketInformation); 208IPPacketInformation ipPacketInformation;
System\Net\Sockets\SocketPal.Unix.cs (11)
43private static unsafe IPPacketInformation GetIPPacketInformation(Interop.Sys.MessageHeader* messageHeader, bool isIPv4, bool isIPv6) 47return default(IPPacketInformation); 53return default(IPPacketInformation); 483private static unsafe int SysReceiveMessageFrom(SafeSocketHandle socket, SocketFlags flags, Span<byte> buffer, Span<byte> socketAddress, out int socketAddressLen, bool isIPv4, bool isIPv6, out SocketFlags receivedFlags, out IPPacketInformation ipPacketInformation, out Interop.Error errno) 524ipPacketInformation = default(IPPacketInformation); 541out SocketFlags receivedFlags, out IPPacketInformation ipPacketInformation, out Interop.Error errno) 611ipPacketInformation = default(IPPacketInformation); 903public static unsafe bool TryCompleteReceiveMessageFrom(SafeSocketHandle socket, Span<byte> buffer, IList<ArraySegment<byte>>? buffers, SocketFlags flags, Memory<byte> socketAddress, out int receivedSocketAddressLength, bool isIPv4, bool isIPv6, out int bytesReceived, out SocketFlags receivedFlags, out IPPacketInformation ipPacketInformation, out SocketError errorCode) 943ipPacketInformation = default(IPPacketInformation); 1304public static SocketError ReceiveMessageFrom(Socket socket, SafeSocketHandle handle, byte[] buffer, int offset, int count, ref SocketFlags socketFlags, SocketAddress socketAddress, out SocketAddress receiveAddress, out IPPacketInformation ipPacketInformation, out int bytesTransferred) 1330public static SocketError ReceiveMessageFrom(Socket socket, SafeSocketHandle handle, Span<byte> buffer, ref SocketFlags socketFlags, SocketAddress socketAddress, out SocketAddress receiveAddress, out IPPacketInformation ipPacketInformation, out int bytesTransferred)
System\Net\Sockets\SocketReceiveMessageFromResult.cs (1)
15public IPPacketInformation PacketInformation;