Struct windivert_sys::address::WINDIVERT_DATA_SOCKET[][src]

#[repr(C)]
pub struct WINDIVERT_DATA_SOCKET { pub endpoint_id: u64, pub parent_endpoint_id: u64, pub process_id: u32, pub local_addr: [u32; 4], pub remote_addr: [u32; 4], pub local_port: u16, pub remote_port: u16, pub protocol: u8, }
Expand description

Represents the associated data recieved using WinDivertLayer::Socket

Fields

endpoint_id: u64

The endpoint ID of the socket.

parent_endpoint_id: u64

The parent endpoint ID of the socket.

process_id: u32

The id of the process associated with the socket.

local_addr: [u32; 4]

The local address associated with the socket.

For IPv4, this field will contain IPv4-mapped IPv6 addresses, e.g. the IPv4 address X.Y.Z.W will be represented by ::ffff:X.Y.Z.W.

remote_addr: [u32; 4]

The remote address associated with the socket.

For IPv4, this field will contain IPv4-mapped IPv6 addresses, e.g. the IPv4 address X.Y.Z.W will be represented by ::ffff:X.Y.Z.W.

local_port: u16

The local port associated with the socket.

remote_port: u16

The remote port associated with the socket.

protocol: u8

The socket protocol.

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Returns the “default value” for a type. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.