Lines Matching refs:sockfd
24 int sockfd; variable
67 if (events[i].data.fd == sockfd) { in loop()
69 int nclientfd = ff_accept(sockfd, NULL, NULL); in loop()
108 sockfd = ff_socket(AF_INET, SOCK_STREAM, 0); in main()
109 printf("sockfd:%d\n", sockfd); in main()
110 if (sockfd < 0) { in main()
116 ff_ioctl(sockfd, FIONBIO, &on); in main()
124 int ret = ff_bind(sockfd, (struct linux_sockaddr *)&my_addr, sizeof(my_addr)); in main()
130 ret = ff_listen(sockfd, MAX_EVENTS); in main()
137 ev.data.fd = sockfd; in main()
139 ff_epoll_ctl(epfd, EPOLL_CTL_ADD, sockfd, &ev); in main()