什么叫sockets

本文介绍了套接字(Sockets)的概念,将其比喻为科幻中的“虫洞”,解释了连接导向型和无连接型套接字的区别,并提及了两种主要的套接字家族:AF_INET用于互联网连接,而AF_UNIX用于Unix系统进程间通信。

Sockets are just like "worm holes" in science fiction. When things go into one end, they (should) come out of the other. Different kinds of sockets have different properties. Sockets are either connection-oriented or connectionless. Connection-oriented sockets allow for data to flow back and forth as needed, while connectionless sockets(also known as datagram sockets) allow only one message at a time to be transmitted, without an open connection. There are also different socket families. The two most common are AF_INET for internet connections, and AF_UNIX for unix IPC (interprocess communication).As stated earlier, this FAQ deals only with AF_INET sockets.

参考:什么叫sockets

 

转载于:https://www.cnblogs.com/phpcode/archive/2012/04/28/2522764.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值