
SOKCET
文章平均质量分 81
安静呆一会儿
这个作者很懒,什么都没留下…
展开
-
Raw Sockets
Raw sockets提供3个特性,这些是TCP和UDP都不提供的:原创 2014-05-06 13:28:32 · 1018 阅读 · 0 评论 -
I/O Multiplexing
What we need is the capability to tell the kernel that we want to be notified if one or more I/O conditions are ready (i.e., input is ready to be read, or the descriptor is capable oftaking more out原创 2014-06-23 12:23:14 · 664 阅读 · 0 评论 -
Advanced I/O Functions
Socket Timeouts三种方法设置timeout原创 2014-05-05 08:52:25 · 478 阅读 · 0 评论 -
Unix Domain Protocols
The Unix domain protocols are not an actual protocol suite, but a way of performing client/server communication on a single host using the same API that is used for clients and servers on different ho原创 2014-07-01 10:42:26 · 910 阅读 · 0 评论 -
ioctl Operations
A common use of ioctl by network programs (typically servers) is to obtain information onall the host's interfaces when the program starts: the interface addresses, whether theinterface supports原创 2014-07-01 16:42:26 · 540 阅读 · 0 评论 -
Elementary UDP Sockets
#include ssize_t recvfrom(int sockfd, void *buff, size_t nbytes, int flags, struct sockaddr *from, socklen_t *addrlen);ssize_t sendto(int sockfd, const void *buff, size_t nbytes, int flags, const原创 2014-06-30 10:48:08 · 629 阅读 · 0 评论 -
Concurrency and Race Conditions
create a semaphore directly, then set it up with sema_init:void sema_init(struct semaphore *sem, int val);原创 2014-08-20 09:52:41 · 415 阅读 · 0 评论 -
Advanced I/O Functions
Socket TimeoutsThere are three ways to place a timeout on an I/O operation involving a socket:原创 2014-07-01 10:01:43 · 497 阅读 · 0 评论 -
Nonblocking I/O
By default, sockets are blocking.原创 2014-05-22 10:32:46 · 462 阅读 · 0 评论 -
Streams
We will also develop a simple TCPclient using the Transport Provider Interface (TPI), the interface into the transport layerthat sockets normally use on a system based on STREAMS原创 2014-06-19 15:51:31 · 449 阅读 · 0 评论 -
Tcp/IP---socket
位置:net/socket.c首先,和目录,一般文件一样,socket也是一种文件类型,对它的处理通过VFS系统来进行,先来看初始化:core_initcall(sock_init); /* early initcall */#define core_initcall(fn) __define_initcall(fn, 1)#define __define_initcall(f原创 2014-09-05 15:39:37 · 518 阅读 · 0 评论 -
Signal-Driven I/O
Signal-Driven I/O for Sockets三个步骤:原创 2014-05-04 09:43:31 · 1783 阅读 · 0 评论 -
out-of-band
在传输层,当连接的一端有很重要的情况发生时,wf原创 2014-05-04 09:20:31 · 1901 阅读 · 0 评论 -
Socket Options
有多种方法设置和得到socket原创 2014-05-04 17:03:52 · 786 阅读 · 0 评论 -
Streams
STREAMS是一个framework,使用TPI(Transport Provider Interface,)原创 2014-05-05 10:48:32 · 484 阅读 · 0 评论 -
Datalink Access
可以看到本地链kht原创 2014-05-06 09:40:47 · 621 阅读 · 0 评论 -
进程,信号
#include struct sigaction原创 2014-05-15 17:03:05 · 582 阅读 · 0 评论