Struct NetSource
Source which takes data from a website.
struct NetSource
;
Constructors
Name | Description |
---|---|
this
(url)
|
Creates a connection by parsing an url from a string. |
Methods
Name | Description |
---|---|
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;