Lines Matching refs:sock
116 curl_socket_t sock[2]; /* fake socket pair until we get support in msh3 */ member
141 ctx->sock[SP_LOCAL] = CURL_SOCKET_BAD; in cf_msh3_ctx_init()
142 ctx->sock[SP_REMOTE] = CURL_SOCKET_BAD; in cf_msh3_ctx_init()
722 if(stream && ctx->sock[SP_LOCAL] != CURL_SOCKET_BAD) { in cf_msh3_adjust_pollset()
724 Curl_pollset_add_in(data, ps, ctx->sock[SP_LOCAL]); in cf_msh3_adjust_pollset()
728 Curl_pollset_add_out(data, ps, ctx->sock[SP_LOCAL]); in cf_msh3_adjust_pollset()
892 if(ctx->sock[SP_LOCAL] == CURL_SOCKET_BAD) { in cf_msh3_connect()
893 if(Curl_socketpair(AF_UNIX, SOCK_STREAM, 0, &ctx->sock[0], FALSE) < 0) { in cf_msh3_connect()
894 ctx->sock[SP_LOCAL] = CURL_SOCKET_BAD; in cf_msh3_connect()
895 ctx->sock[SP_REMOTE] = CURL_SOCKET_BAD; in cf_msh3_connect()
956 if(ctx->sock[SP_LOCAL] == cf->conn->sock[cf->sockindex]) { in cf_msh3_close()
958 (int)ctx->sock[SP_LOCAL]); in cf_msh3_close()
959 cf->conn->sock[cf->sockindex] = CURL_SOCKET_BAD; in cf_msh3_close()
963 "conn->sock[], discarding", (int)ctx->sock[SP_LOCAL]); in cf_msh3_close()
964 ctx->sock[SP_LOCAL] = CURL_SOCKET_BAD; in cf_msh3_close()
969 if(ctx->sock[SP_LOCAL] != CURL_SOCKET_BAD) { in cf_msh3_close()
970 sclose(ctx->sock[SP_LOCAL]); in cf_msh3_close()
972 if(ctx->sock[SP_REMOTE] != CURL_SOCKET_BAD) { in cf_msh3_close()
973 sclose(ctx->sock[SP_REMOTE]); in cf_msh3_close()
975 ctx->sock[SP_LOCAL] = CURL_SOCKET_BAD; in cf_msh3_close()
976 ctx->sock[SP_REMOTE] = CURL_SOCKET_BAD; in cf_msh3_close()
1036 return ctx && ctx->sock[SP_LOCAL] != CURL_SOCKET_BAD && ctx->qconn && in cf_msh3_conn_is_alive()