Lines Matching refs:sockfd
989 rfb->sockfd = socket(PF_INET, SOCK_STREAM, IPPROTO_TCP);
990 if (rfb->sockfd == -1) {
1000 if (bind(rfb->sockfd, (struct sockaddr *)&sin, sizeof(sin)) == -1) {
1003 close(rfb->sockfd);
1007 if (listen(rfb->sockfd, 1) != 0) {
1010 close(rfb->sockfd);
1021 int sockfd;
1025 sockfd = socket(AF_INET, SOCK_STREAM, IPPROTO_TCP);
1026 if (sockfd < 0) {
1037 if (bind(sockfd, (struct sockaddr *)&sin, sizeof(sin)) < 0) {
1039 close(sockfd);
1044 if (listen(sockfd, 1) < 0) {
1046 close(sockfd);
1051 return sockfd;
1055 thunk_gdb_accept(int sockfd)
1061 fd = accept(sockfd, (struct sockaddr *) &client_addr, &client_addrlen);
1339 fds[0].fd = rfb->sockfd;
1354 rfb->clientfd = accept(rfb->sockfd, (struct sockaddr *)&sin,