Lines Matching refs:FD2PEER
40 #define FD2PEER (state->fd2peer) macro
93 FD2PEER = xrealloc(FD2PEER, FD_COUNT * sizeof(FD2PEER[0])); in isrv_register_fd()
94 while (n < fd) FD2PEER[n++] = -1; in isrv_register_fd()
99 FD2PEER[fd] = peer; in isrv_register_fd()
112 FD2PEER[fd] = -1; in isrv_close_fd()
114 do fd--; while (fd >= 0 && FD2PEER[fd] == -1); in isrv_close_fd()
119 FD2PEER = xrealloc(FD2PEER, FD_COUNT * sizeof(FD2PEER[0])); in isrv_close_fd()
151 if (FD2PEER[fd] == peer) { in remove_peer()
156 if (FD2PEER[fd] > peer) in remove_peer()
157 FD2PEER[fd]--; in remove_peer()
233 peer = FD2PEER[fd]; in handle_fd_set()