Skip to content

Commit

Permalink
Updated get_processes arguments docs and added comment for TableClass…
Browse files Browse the repository at this point in the history
… impl details
  • Loading branch information
jacobtread committed May 18, 2023
1 parent 0183494 commit 8649c88
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/windows.rs
Original file line number Diff line number Diff line change
Expand Up @@ -267,6 +267,7 @@ trait TableClass {
///
/// # Arguments
///
/// * `table` - The pointer to the table class
/// * `port` - The port to search for
/// * `pids` - The process IDs to insert into
unsafe fn get_processes(table: *const Self, port: u16, pids: &mut HashSet<u32>);
Expand Down Expand Up @@ -295,6 +296,7 @@ macro_rules! impl_get_processes {
};
}

/// TCP IPv4 table class
impl TableClass for MIB_TCPTABLE_OWNER_MODULE {
const TABLE_FN: GetExtendedTable = GetExtendedTcpTable;
const FAMILY: AddressFamily = INET;
Expand All @@ -303,6 +305,7 @@ impl TableClass for MIB_TCPTABLE_OWNER_MODULE {
impl_get_processes!(MIB_TCPROW_OWNER_MODULE);
}

/// TCP IPv6 table class
impl TableClass for MIB_TCP6TABLE_OWNER_MODULE {
const TABLE_FN: GetExtendedTable = GetExtendedTcpTable;
const FAMILY: AddressFamily = INET6;
Expand All @@ -311,6 +314,7 @@ impl TableClass for MIB_TCP6TABLE_OWNER_MODULE {
impl_get_processes!(MIB_TCP6ROW_OWNER_MODULE);
}

/// UDP IPv4 table class
impl TableClass for MIB_UDPTABLE_OWNER_MODULE {
const TABLE_FN: GetExtendedTable = GetExtendedUdpTable;
const FAMILY: AddressFamily = INET;
Expand All @@ -319,6 +323,7 @@ impl TableClass for MIB_UDPTABLE_OWNER_MODULE {
impl_get_processes!(MIB_UDPROW_OWNER_MODULE);
}

/// UDP IPv6 table class
impl TableClass for MIB_UDP6TABLE_OWNER_MODULE {
const TABLE_FN: GetExtendedTable = GetExtendedUdpTable;
const FAMILY: AddressFamily = INET6;
Expand Down

0 comments on commit 8649c88

Please sign in to comment.