About
The User Datagram Protocol allows to send messages across networks without connections. The maxon::NetworkUdpInterface is used to create a sender to send UDP messages or to create a server to receive messages.
- Note
 - The UDP interface uses an AioService. See maxon::AioServiceInterface.
 
NetworkUdpInterface
The maxon::NetworkUdpInterface provides these functions:
NetworkUdpServerInterface
The maxon::NetworkUdpServerInterface controls an UDP server that can receive UDP data:
  
  
 
  
 
  
  g_udpServer = 
maxon::NetworkUdpInterface::CreateUdpServer(localAddr, UDPCallback, g_ioService) 
iferr_return;
 
static auto Create(ARGS &&... args)
Definition: apibase.h:2823
 
maxon::NetworkIpAddrPort NetworkIpAddrPort
Definition: operatingsystem.h:312
 
The maxon namespace contains all declarations of the Maxon API.
Definition: autoweight.h:21
 
static const WILDCARD_IPV4_ADDRESS_TYPE WILDCARD_IPV4_ADDRESS
Definition: network_ip_addr.h:45
 
#define iferr_return
Definition: resultbase.h:1531
 
  
 
{
 
  
 
  
 
}
Definition: network_ip_addr.h:444
 
Definition: string.h:1287
 
PyObject PyObject * result
Definition: abstract.h:43
 
const char * message
Definition: pyerrors.h:189
 
return OK
Definition: apibase.h:2740
 
#define DiagnosticOutput(formatString,...)
Definition: debugdiagnostics.h:170
 
#define iferr_scope
Definition: resultbase.h:1396
 
  
NetworkUdpSenderInterface
The maxon::NetworkUdpSenderInterface allows to send data via UDP to a remote machine.
  
 
  
 
  
 
  
  maxon::CString   messageCStr("Test Message");
 
  {
      err.DbgStop();
  }
 
  
const char ** buffer
Definition: abstract.h:327
 
Py_UNICODE c
Definition: unicodeobject.h:1200
 
for(i=0;i< length;i++)
Definition: unicodeobject.h:61
 
IPV4
IPv4.
Definition: ge_prepass.h:1
 
PROTOCOL
Definition: ge_prepass.h:5593
 
#define iferr(...)
Definition: errorbase.h:388
 
maxon::Char Char
Definition: ge_sys_math.h:47
 
BaseArray< Char > AioBuffer
Definition: network_ioservice.h:15
 
  
NetworkUdpChannelInterface
maxon::NetworkUdpChannelInterfac represents an asynchronous UDP channel that can both receive data and send data:
  
  
 
  
 
  
  g_udpChannel = 
maxon::NetworkUdpInterface::CreateUdpChannel(localAddr, g_channelIoService) 
iferr_return;
 
  
 
{
 
  
 
  
 
}
void * buf
Definition: abstract.h:289
 
  
Further Reading