Lines Matching refs:fd_c
301 SOCKET fd_c, fd_s; local
303 int fd_c, fd_s, rc; local
335 if ((fd_c = socket(AF_INET, SOCK_DGRAM, IPPROTO_UDP)) == INVALID_SOCKET) {
344 if ((fd_c = socket(AF_INET, SOCK_DGRAM, IPPROTO_UDP)) < 0) {
368 if (bind(fd_c, (struct sockaddr *)&sin_c, sizeof(struct sockaddr_in)) == SOCKET_ERROR) {
377 if (bind(fd_c, (struct sockaddr *)&sin_c, sizeof(struct sockaddr_in)) < 0) {
387 if (connect(fd_c, (struct sockaddr *)&sin_s, sizeof(struct sockaddr_in)) == SOCKET_ERROR) {
396 if (connect(fd_c, (struct sockaddr *)&sin_s, sizeof(struct sockaddr_in)) < 0) {
406 if ((tid_c = CreateThread(NULL, 0, &handle_packets, (void *)&fd_c, 0, NULL)) == NULL) {
415 if ((rc = pthread_create(&tid_c, NULL, &handle_packets, (void *)&fd_c)) != 0) {
429 usrsctp_register_address((void *)&fd_c);
436 usrsctp_set_upcall(s_c, handle_upcall, &fd_c);
494 sconn.sconn_addr = &fd_c;
523 sconn.sconn_addr = &fd_c;
573 if (closesocket(fd_c) == SOCKET_ERROR) {
587 if (close(fd_c) < 0) {