UDPネットワークプログラミングの実装

前章ではソケットとTCP/UDPプロトコルについて説明しました。本章ではUDPプロトコルに基づくネットワークサービスをいくつか実装します。サーバーとクライアントの両方が必要です。 サーバーの実装 1.1 socket関数 #include <sys/types.h> #include <sys/socket.h> int socket(int domain, int type, int protocol); 引数の説明: domain:ドメイ ...

6月27日 16:53 投稿