Get H1 Host PID Module
- emulations.get_h1_host_pid.get_h1_host_pid(net, host_name)
Get the process ID (PID) of a specified host in the network.
This function takes the Mininet network object net and the name of the host host_name as input and returns the process ID (PID) of the specified host. It iterates through the list of hosts in the network and matches the host by name.
Parameters:
net (mininet.net.Mininet): The Mininet network object.
host_name (str): The name of the host for which the PID is to be retrieved.
Returns: int or None: The PID of the specified host, or None if the host was not found.
This module provides a function to get the process ID (PID) of a specified host in the network.