WebClient
This class allows to perform web methods.
List of all members
- WebClient - This class allows to perform web methods.
- this() - Object constructor.
- open(host, port = 80, useSSL = false [, proxy] - Function opens web location for working.
- cancel() - This function cancel running operations of WebClient.
- getData(resource [, responseToFile]) - Easy way to get data from server. Data from the server are saved to a file to location set by second parameter.
- postData(resource, data [, responseToFile]) - Function posts data to the server.
- postData(resource, fileToPost [, responseToFile]) - Function posts file to the server.
- host - Server URL.
- port - Port number.
- secure - Value is true if connection is secured by SSL protocol. Otherwise the value is false.
- state - Number representatin of state.
- data - Received vector of bytes.
- errorCode - Last code error.
- errorMessage - Last error message generated by the WebClient object.
- onError() - Callback which is called when an error appears.
- onReceived() - Callback function which is called when new data has been received.
- onReceiving(bytes, bytesTotal) - Callback function which is called while receiving new data.
- onSending(bytes, bytesTotal) - Callback function which is called while sending data.
- onCancel() - Callback which is called when some web operation is cancelled.