地方エンジニアの学習日記

興味ある技術の雑なメモだったりを書いてくブログ。たまに日記とガジェット紹介。

2024-04-24から1日間の記事一覧

【C】libuvのサンプルコード

github.com 読む機会があったのでコメント付きで書いてみる。 #include <stdio.h> #include <stdlib.h> #include <string.h> #include <uv.h> #define DEFAULT_PORT 7000 #define DEFAULT_BACKLOG 128 uv_loop_t *loop; typedef struct { uv_write_t req; uv_buf_t buf; } write_req_t; // 書き</uv.h></string.h></stdlib.h></stdio.h>…