cURL / Mailing Lists / curl-library / Single Mail


Re: how do I create websocket client with libcurl (was: A quick hack to support Websocket with libcurl)

From: YAMADA Yasuharu <>
Date: Mon, 23 Mar 2015 14:28:46 +0900

2015-03-19 16:28 GMT+09:00 Daniel Stenberg <>:

> In order to make it work for the multi interface we need to add some
> logic. See lib/easy.c:curl_easy_recv() and the easy_connection() function.

I told you,

> curl_multi_perform() CONNECT to server
> curl_easy_send() or curl_easy_recv()
> -> easy_connection()
> -> Curl_getconnectinfo()
> -> data->multi_easy is NULL because it does not use easy_perform()
> -> return CURL_SOCKET_BAD by Curl_getconnectinfo()

Curl_getconnectinfo() want to ONLY work for curl_easy_perform().
I guess this is the point.

I think it is better way that Curl_getconnectinfo() works for BOTH of
easy_perform() and multi_perform().
are you agree?


List admin:
Received on 2015-03-23