18 if (
recvd.payload !=
"hi there" ||
recvd2.payload !=
"hi yourself") {
Wrapper around IPv4 addresses and DNS operations.
void connect(const Address &address)
Connect a socket to a specified peer address with connect(2).
void bind(const Address &address)
Bind a socket to a specified address with bind(2), usually for listen/accept.
A wrapper around UDP sockets.
received_datagram recv(const size_t mtu=65536)
Receive a datagram and the Address of its sender.
void send(const BufferViewList &payload)
Send datagram to the socket's connected address (must call connect() first)
void sendto(const Address &destination, const BufferViewList &payload)
Send a datagram to specified Address.