Lines Matching refs:fd
16 int fd; member
56 APP_CONN *new_conn(SSL_CTX *ctx, int fd, const char *bare_hostname) in new_conn() argument
76 if (SSL_set_fd(ssl, fd) <= 0) { in new_conn()
104 conn->fd = fd; in new_conn()
182 return conn->fd; in get_conn_fd()
296 int rc, fd = -1, res = 1; in main() local
340 fd = socket(AF_INET, SOCK_DGRAM, IPPROTO_UDP); in main()
342 fd = socket(AF_INET, SOCK_STREAM, IPPROTO_TCP); in main()
344 if (fd < 0) { in main()
349 rc = connect(fd, result->ai_addr, result->ai_addrlen); in main()
355 rc = fcntl(fd, F_SETFL, O_NONBLOCK); in main()
361 conn = new_conn(ctx, fd, argv[1]); in main()
391 pfd.fd = get_conn_fd(conn); in main()
435 pfd.fd = get_conn_fd(conn); in main()