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;
Definition: network_ip_addr.h:444
static auto Create(ARGS &&... args)
Definition: apibase.h:2818
The maxon namespace contains all declarations of the MAXON API.
Definition: autoweight.h:14
static const WILDCARD_IPV4_ADDRESS_TYPE WILDCARD_IPV4_ADDRESS
Definition: network_ip_addr.h:45
#define iferr_return
Definition: resultbase.h:1524
{
}
Definition: string.h:1237
PyObject PyObject * result
Definition: abstract.h:43
const char * message
Definition: pyerrors.h:189
return OK
Definition: apibase.h:2735
#define DiagnosticOutput(formatString,...)
Definition: debugdiagnostics.h:170
#define iferr_scope
Definition: resultbase.h:1389
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
maxon::Char Char
Definition: ge_sys_math.h:52
PROTOCOL
Definition: ge_prepass.h:5566
#define iferr(...)
Definition: errorbase.h:388
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