Lines Matching refs:s
23 static struct wpabuf * https_recv(int s) in https_recv() argument
35 FD_SET(s, &rfds); in https_recv()
40 ret = select(s + 1, &rfds, NULL, NULL, &tv); in https_recv()
53 len = recv(s, wpabuf_put(in, 0), wpabuf_tailroom(in), 0); in https_recv()
71 static int https_client(int s, const char *path) in https_client() argument
113 if (send(s, wpabuf_head(out), wpabuf_len(out), 0) < 0) { in https_client()
121 in = https_recv(s); in https_client()
146 if (send(s, wpabuf_head(out), wpabuf_len(out), 0) < 0) { in https_client()
156 in = https_recv(s); in https_client()
187 int res, s; in main() local
207 s = socket(rp->ai_family, rp->ai_socktype, rp->ai_protocol); in main()
208 if (s < 0) in main()
210 if (connect(s, rp->ai_addr, rp->ai_addrlen) == 0) in main()
212 close(s); in main()
221 https_client(s, argv[3]); in main()
222 close(s); in main()