From 514592b89207e83d13b5a4e79bc247aa6f74c4b7 Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Mon, 12 May 2008 21:43:24 +0000 Subject: - Introducing curl_easy_send() and curl_easy_recv(). They can be used to send and receive data over a connection previously setup with curl_easy_perform() and its CURLOPT_CONNECT_ONLY option. The sendrecv.c example was added to show how they can be used. --- lib/connect.h | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'lib/connect.h') diff --git a/lib/connect.h b/lib/connect.h index 78c0191ba..8e55cc941 100644 --- a/lib/connect.h +++ b/lib/connect.h @@ -47,4 +47,13 @@ long Curl_timeleft(struct connectdata *conn, #define DEFAULT_CONNECT_TIMEOUT 300000 /* milliseconds == five minutes */ +/* + * Used to extract socket and connectdata struct for the most recent + * transfer on the given SessionHandle. + * + * The socket 'long' will be -1 in case of failure! + */ +CURLcode Curl_getconnectinfo(struct SessionHandle *data, + long *param_longp, + struct connectdata **connp); #endif -- cgit v1.2.3