New blog-based website ! Currently you are browsing the old site.

DomsWebPack

This DLL contains four new BuildingBlocks: CacheFileFromHTTP, GetTextFromHTTP, SendDataToWebpage and GetIPs.

CacheFileFromHTTP uses MFC to download files from a webserver. The user provides the Building-Block with an array where the pathes (relativly top the server address) of the files, which are to download, are listed. Additionally the user can provide a comment for each file, so the user can be informed what the download is about (why he has to wait ;) ).

In order to maintain a bit security the user cannot specifiy the target location of the downloaded files but only a 'project' name. A subdirectory will be created according to the name of the project where the downloaded files will be stored. This way name clashed can be prevented when using same file names in different projects. The file on the server will only be downloaded if there isn't not a local copy or if the date of the file on the server is newer than the local one. This way the composer can always run through the entire list without fearing that downloaded contet will be downloaded again.

The BB output the local path of the downloaded file. Additional the kb, that have been download of the current file, the avergae kb/s and a estimated remaining time for the current file is availible, so it can be used to give the user feedback about the process.

This component is freely availible for non-commercial use in DomsPublicHTTPDownloader.

GetTextFromHTTP is a little BB that uses MFC in order to download txt from a webserver. You can download .txt files or any other string that is return by the webserver i.e a webpage. This is especially useful for displaying a message-of-the-day or any other news.

SendDataToWebpage reuses a on the internet freely availible class for sending data via POST or GET to a webserver. This way the composer can use a virtools composition like a http form and communicate to databases etc via i.e PHP. I use it to load and store data like character-profiles from a game into online-databases.

GetIPs also uses MFC and creates an array where the IPs of the current machienes are written into. Additionally each IPs is checked against the IP-masks which are officialy declared as private. If the IP fits, then the 'Lan only?' colum ist set to "true" - allowing the user to identify LAN or WAN IPs. This BB outputs also the host name of the computer.

back to top