示例#1
0
文件: easy.go 项目: 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)}
}
示例#2
0
文件: easy.go 项目: andelf/go-curl
// 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
}