美文网首页
Linux socket programming

Linux socket programming

作者: s7_200_smart | 来源:发表于2016-05-26 11:58 被阅读30次

To create a socket, we call the socket function.

#include <sys/socket.h>
int socket(int domain, int type, int protocol);
                               Returns: file (socket) descriptor if OK, −1 on error

socket.h位于/usr/include/i386-linux-gnu/sys/目录下

相关文章

网友评论

      本文标题:Linux socket programming

      本文链接:https://www.haomeiwen.com/subject/mptxdttx.html