Lines Matching defs:tcs
262 struct tcurl_sock *tcs = NULL;
266 tcs = talloc_get_type(data, struct tcurl_sock);
267 if (tcs == NULL) {
278 /* multi_socket_action might invalidate tcs when the transfer ends,
281 tctx = tcs->tctx;
284 curl_multi_socket_action(tcs->tctx->multi_handle,
285 tcs->sockfd,
303 struct tcurl_sock *tcs;
305 tcs = talloc_zero(tctx, struct tcurl_sock);
306 if (tcs == NULL) {
309 tcs->sockfd = sockfd;
310 tcs->tctx = tctx;
312 tcs->fde = tevent_add_fd(tctx->ev, tcs, sockfd, flags,
313 tcurlsock_input_available, tcs);
314 if (tcs->fde == NULL) {
315 talloc_free(tcs);
319 curl_multi_assign(tctx->multi_handle, sockfd, (void *) tcs);
320 return tcs;