当前位置: 技术问答>linux和unix
unix环境高级编程中有一个疑惑
来源: 互联网 发布时间:2017-02-12
本文导语: loop(void) { int i, n, maxfd, maxi, listenfd, clifd, nread; char buf[MAXLINE]; uid_t uid; fd_set rset, allset; FD_ZERO(&allset); /* obtain fd to listen for client requests on */ if ( (listenfd = serv_listen(CS_OPEN))
loop(void)
{
int i, n, maxfd, maxi, listenfd, clifd, nread;
char buf[MAXLINE];
uid_t uid;
fd_set rset, allset;
FD_ZERO(&allset);
/* obtain fd to listen for client requests on */
if ( (listenfd = serv_listen(CS_OPEN))
{
int i, n, maxfd, maxi, listenfd, clifd, nread;
char buf[MAXLINE];
uid_t uid;
fd_set rset, allset;
FD_ZERO(&allset);
/* obtain fd to listen for client requests on */
if ( (listenfd = serv_listen(CS_OPEN))