Esempio n. 1
0
File: easy.go Progetto: ym/go-curl
// curl_easy_duphandle - Clone a libcurl session handle
func (curl *CURL) Duphandle() *CURL {
	p := curl.handle
	return &CURL{handle: C.curl_easy_duphandle(p)}
}
Esempio n. 2
0
// curl_easy_duphandle - Clone a libcurl session handle
func (curl *CURL) Duphandle() *CURL {
	p := C.curl_easy_duphandle(curl.handle)
	c := &CURL{handle: p}
	context_map.Set(uintptr(p), c)
	return c
}