The OpenD Programming Language

Curl.onSeek

The event handler that gets called when the curl backend needs to seek the data to be sent.

struct Curl
@property
void
onSeek
()

Parameters

callback CurlSeek delegate

the callback that receives a seek offset and a seek position etc.c.curl.CurlSeekPos

Return Value

Type: void

The callback returns the success state of the seeking etc.c.curl.CurlSeek

Examples

import std.net.curl;
Curl curl;
curl.initialize();
curl.set(CurlOption.url, "http://dlang.org");
curl.onSeek = (long p, CurlSeekPos sp)
{
    return CurlSeek.cantseek;
};
curl.perform();

Meta