Gaming Life

一日24時間、ゲームは10時間

2019-09-17から1日間の記事一覧

(Linux) UDPを使って一定時間おきに文字列を送信するプログラム

研究室でUDPを使った無線通信の受信側が受信待ち状態にない時のパケットキャプチャをする必要があったので書いた. 劣化iperfにすぎないとか言ってはいけない. #include <arpa/inet.h> #include <netinet/in.h> #include <stdlib.h> #include <sys/socket.h> #include <sys/types.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <time.h></time.h></string.h></stdlib.h></stdio.h></sys/types.h></sys/socket.h></stdlib.h></netinet/in.h></arpa/inet.h>…