EAGAIN、EWOULDBLOCK、EINTR与非阻塞的理解
当socket设置为非阻塞的情况时(设置方法参考该文)在select的时候,或者read的时候,都会遇到错误,并返回errno,我们查看errno.h中会看到:#define EINTR 4 /* Interrupted system call */#define EAGAIN 11 /* Resource unavailable, try again */#define EWOULDBLOCK EAGAIN...