Jak można odebrać tekst z serwera do klienta w C++ za pomocą gniazd BSD i UDP?
Mój klient (można w nim wybrać TCP lub UDP):
#include <iostream> //cin
#include <netdb.h> //hostent
#include <fcntl.h> //fcntl, F_SETFL, O_NONBLOCK
using namespace std;
int main()
{
int sockfd, numbytes;
char...