PROFINET IO Controller Stack 1.0.0
Modern C++ implementation of a PROFINET IO Controller stack
Loading...
Searching...
No Matches
profinet::UdpEndpoint Struct Reference

Portable IPv4 UDP endpoint. More...

#include <IUdpSocket.h>

+ Collaboration diagram for profinet::UdpEndpoint:

Public Member Functions

bool operator== (const UdpEndpoint &other) const =default
 Compare two UDP endpoints.
 

Public Attributes

std::string address
 Numeric IPv4 address in dotted-decimal notation.
 
std::uint16_t port = 0
 UDP port in host byte order.
 

Detailed Description

Portable IPv4 UDP endpoint.

Contains only protocol-level endpoint information and does not expose platform-specific socket address structures.

Definition at line 41 of file IUdpSocket.h.

Member Function Documentation

◆ operator==()

bool profinet::UdpEndpoint::operator== ( const UdpEndpoint &  other) const
default

Compare two UDP endpoints.

Parameters
otherEndpoint to compare with.
Returns
True when both the address and port are equal.

Member Data Documentation

◆ address

std::string profinet::UdpEndpoint::address

Numeric IPv4 address in dotted-decimal notation.

Definition at line 44 of file IUdpSocket.h.

Referenced by profinet::UdpSocket::RecvFrom(), profinet::UdpSocket::SendTo(), profinet::TEST(), and profinet::TEST().

◆ port

std::uint16_t profinet::UdpEndpoint::port = 0

UDP port in host byte order.

Definition at line 47 of file IUdpSocket.h.

Referenced by profinet::UdpSocket::RecvFrom(), profinet::UdpSocket::SendTo(), profinet::TEST(), and profinet::TEST().


The documentation for this struct was generated from the following file: