ããã©ã¼ãã³ã¹ãããããã¨è©å¤ã®libevã§echoãµã¼ããæ¸ãã¦ã¿ãã echod_libev.c #include <stdio.h> #include <stdlib.h> #include <string.h> #include <sys/socket.h> #include <arpa/inet.h> #include <sys/types.h> #include <unistd.h> #include <fcntl.h> #include <errno.h> #include <ev.h> #define ECHO_PORT 7 #define MAX_BACKLOG 5 #define RCVBUFSIZE 256 #define MAX_EVENTS 1024 #define die(s) do { fprintf(stderr, "%s\n", (s)); exit(1)
{{#tags}}- {{label}}
{{/tags}}