Gather information about network devices.  
More...
|  | 
| typedef struct Eeze_Net | Eeze_Net | 
|  | 
|  | 
| enum | Eeze_Net_Addr_Type { EEZE_NET_ADDR_TYPE_IP,
 EEZE_NET_ADDR_TYPE_IP6,
 EEZE_NET_ADDR_TYPE_BROADCAST,
 EEZE_NET_ADDR_TYPE_BROADCAST6,
 EEZE_NET_ADDR_TYPE_NETMASK,
 EEZE_NET_ADDR_TYPE_NETMASK6
 }
 | 
|  | 
Gather information about network devices. 
◆ eeze_net_new()
      
        
          | EAPI Eeze_Net * eeze_net_new | ( | const char * | name | ) |  | 
      
 
 
◆ eeze_net_free()
      
        
          | EAPI void eeze_net_free | ( | Eeze_Net * | net | ) |  | 
      
 
 
◆ eeze_net_mac_get()
      
        
          | EAPI const char * eeze_net_mac_get | ( | Eeze_Net * | net | ) |  | 
      
 
Get the MAC address of a net object. 
- Parameters
- 
  
  
- Returns
- The MAC address, NULL on failure Use this function to retrieve the non-stringshared MAC address of net.
 
 
◆ eeze_net_idx_get()
      
        
          | EAPI int eeze_net_idx_get | ( | Eeze_Net * | net | ) |  | 
      
 
Get the index of a net object. 
- Parameters
- 
  
  
- Returns
- The ifindex of the object, -1 on failure Use this function to get the hardware index of net
 
 
◆ eeze_net_scan()
Scan an interface to cache its network addresses. 
- Parameters
- 
  
    | net | The net object to scan |  
 
- Returns
- EINA_TRUE on success, EINA_FALSE on failure Use this function to scan and cache the ip address, netmask, and broadcast address for an interface. This function will perform a full scan every time it is called, and IPv6 addresses will be cached if Eeze was compiled with IPv6 support was enabled at compile time. 
- See also
- eeze_net_addr_get() 
 
 
◆ eeze_net_addr_get()
      
        
          | EAPI const char * eeze_net_addr_get | ( | Eeze_Net * | net, | 
        
          |  |  | Eeze_Net_Addr_Type | type | 
        
          |  | ) |  |  | 
      
 
Get the address of a net object. 
- Parameters
- 
  
    | net | The net object |  | type | The type of address to retrieve |  
 
- Returns
- The stringshared address for netcorresponding totype, NULL on failure This function returns a value previously cached.
- See also
- eeze_net_scan() 
 
 
◆ eeze_net_attribute_get()
      
        
          | EAPI const char * eeze_net_attribute_get | ( | Eeze_Net * | net, | 
        
          |  |  | const char * | attr | 
        
          |  | ) |  |  | 
      
 
Get a system attribute of a net object. 
- Parameters
- 
  
    | net | The net object |  | attr | The attribute to retrieve |  
 
- Returns
- The non-stringshared value of the attribute, NULL on failure Use this function to perform a udev sysattr lookup on the underlying device of net
 
 
◆ eeze_net_syspath_get()
      
        
          | EAPI const char * eeze_net_syspath_get | ( | Eeze_Net * | net | ) |  | 
      
 
Get the /sys/ path of a net object. 
- Parameters
- 
  
  
- Returns
- The stringshared /sys/ path of the interface, NULL on failure 
 
 
◆ eeze_net_list()
Get a list of all the network interfaces available. 
- Returns
- A list of Eeze_Net objects Use this function to get all network interfaces available to the application. This list must be freed by the user. 
References eeze_net_new(), and eina_list_append().