man 7 socket

socket(2) creates a socket, connect(2) connects a socket to a remote socket address, the bind(2) function binds a socket to a local
socket address, listen(2) tells the socket that new connections shall be accepted, and accept(2) is used to get a new socket with a
new incoming connection. socketpair(2) returns two connected anonymous sockets (implemented only for a few local families like
AF_UNIX)
It is possible to do nonblocking I/O on sockets by setting the O_NONBLOCK flag on a socket file descriptor using fcntl(2). Then all
operations that would block will (usually) return with EAGAIN (operation should be retried later); connect(2) will return EINPROGRESS
error. The user can then wait for various events via poll(2) or select(2).

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值