select ã«ãããã«ãã¹ã¬ãããµã¼ã C è¨èªã«ãã㦠select ã®ä½¿ãæ¹ã説æãã¾ãã echo-server-select.c 117: int 118: main(){ 119: fd_set target_fds; 120: fd_set org_target_fds; 121: int sock_optval = 1; 122: int port = 5000; 123: /* ãªã¹ãã³ã°ã½ã±ãããä½æ */ 124: listening_socket = socket(AF_INET, SOCK_STREAM, 0); 125: 126: /* ã½ã±ãããªãã·ã§ã³è¨å® */ 127: if ( setsockopt(listening_socket, SOL_SOCKET, SO_REUSEADDR, 128: &sock_optval, sizeof(sock_opt
{{#tags}}- {{label}}
{{/tags}}