INTRODUCTION Overview Download and Install Documentation Publications REPOSITORY Libraries DEVELOPER Dev Guide Dashboard PEOPLE Contributors Users Project Download Mailing lists
|
flexiport::UDPPort Class ReferenceUDP implementation of the Port class. This class provides UDP communication between two known end points. It cannot send to any address other than the configured address. More...
Inherits flexiport::Port.
Detailed DescriptionUDP implementation of the Port class. This class provides UDP communication between two known end points. It cannot send to any address other than the configured address.See the Port class documentation for how to use the common API. Note that some parts of the API do not apply due to the nature of the datagram-oriented protocol. Because each datagram is individual and no merging is typically performed between datagrams, several flexiport functions do not work (they were designed for stream-oriented communications). These are ReadStringUntil, ReadLine (std::string version), Skip, and SkipUntil. This will be (hopefully) be fixed soon. TODO: Add support for configuring the destination address based on the first data received, to allow destination auto-configuration. TODO: Add an option to turn buffering on, making the UDP protocol function like a stream-based protocol and so enabling the use of those parts of the API that do not function correctly for a datagram-based protocol. Alternatively, fix the functions that don't work yet so they read more than a byte at a time.
Member Function Documentation
Open the port. This will create a listening socket and a sending socket. Implements flexiport::Port. Referenced by Read(), and ReadFull().
The documentation for this class was generated from the following files:
|