socket.c
来自「java 到c的转换程序的原代码.对喜欢C程序而不懂JAVA程序的人很有帮助」· C语言 代码 · 共 20 行
C
20 行
/* Redefinition of the open system call, so that we can mark it * as non-blocking and asynchronous */#include <sys/types.h>#include <sys/stat.h>#include <sys/socket.h>#include <fcntl.h>int __wrap_socket(int domain, int type, int protocol){ int fd, ret; fd = __real_socket(domain, type, protocol); if (fd == -1) return -1; return setupFileDesc(fd, 0);}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?