hololink::emulation::IPAddress

View as Markdown

python (limited API):

def __init__(self: hemu.IPAddress, ``ip_address``: str, /)

Encapsulates all the relevant information for transmission from an Emulator device IP address

This structure contains the network interface configuration required for the emulator to send packets, including interface name, IP address, MAC address, optional port and broadcast address (defaulting to 255.255.255.255 if on interface that does not have an explicit broadcast, e.g. loopback).

#include <hololink/emulation/net.hpp>

Member variables

NameTypeDescription
if_namecharNetwork interface name (e.g., “eth0”, “lo”).
ip_addressuint32_tIP address in network byte order.
subnet_maskuint32_tSubnet mask in network byte order.
broadcast_addressuint32_tBroadcast address in network byte order.
macuint8_tMAC address of the interface.
portuint16_tUDP port number (defaults to DATA_SOURCE_UDP_PORT).
flagsuint8_tConfiguration flags indicating which fields are valid.