?? figc.21
字號:
#include "apue.h"#include <errno.h>#include <fcntl.h>#include <sys/socket.h>#include <sys/ioctl.h>#if defined(BSD) || defined(MACOS) || defined(SOLARIS)#include <sys/filio.h>#endifintsetasync(int sockfd){ int n; if (fcntl(sockfd, F_SETOWN, getpid()) < 0) return(-1); n = 1; if (ioctl(sockfd, FIOASYNC, &n) < 0) return(-1); return(0);}intclrasync(int sockfd){ int n; n = 0; if (ioctl(sockfd, FIOASYNC, &n) < 0) return(-1); return(0);}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -