Struct NetSource

Source which takes data from a website.

struct NetSource ;

<

Constructors

NameDescription
this (url) Creates a connection by parsing an url from a string.

Methods

NameDescription
empty () Checks if the socket has been closed by the sender. Does not check for data based closures (html or http).

Example

import elembuf, source;

auto buf = buffer("");
auto src = "www.bing.com".NetSource;

while(buf.length == 0)
	buf ~= src;