OSDN Git Service
(root)
/
zither
/
ds-zither.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
addid library source 20140221
[zither/ds-zither.git]
/
sources
/
lib
/
libms
/
socket_accept46rfd.c
1
2
#include<sys/types.h>
3
#include<sys/socket.h>
4
#include<netinet/in.h>
5
#include<netdb.h>
6
#include<stdio.h>
7
#include<errno.h>
8
#include<unistd.h>
9
#include<string.h>
10
#include<stdlib.h>
11
#include<arpa/inet.h>
12
13
14
// proto type
15
// int socket_accept46rfd(fd_set * rfd, int * s, int smax);
16
17
int socket_accept46rfd(fd_set * rfd, int * s, int smax)
18
{
19
int i;
20
21
FD_ZERO(rfd);
22
for(i = 0; i < smax; i++){
23
FD_SET(s[i], rfd);
24
}
25
26
return 0;
27
}
28
29
30
31
32