/programs/cmm/browser/WebView.c |
---|
28,6 → 28,7 |
#include "..\lib\patterns\http_downloader.h" |
_http http = {0, 0, 0, 0, 0, 0, 0}; |
DOWNLOADER downloader; |
char homepage[] = FROM "html\\homepage.htm""\0"; |
/programs/cmm/lib/obj/http.h |
---|
12,7 → 12,7 |
dword libHTTP = #alibHTTP; |
char alibHTTP[] = "/sys/lib/http.obj"; |
dword http_lib_init = #aLib_init; |
dword http_lib_init = #aHTTPinit; |
dword http_get = #aHTTPget; |
dword http_head = #aHTTPhead; |
dword http_post = #aHTTPpost; |
25,7 → 25,7 |
dword uri_unescape = #aURIunescape; |
$DD 2 dup 0 |
char aLib_init[] = "lib_init"; |
char aHTTPinit[] = "lib_init"; |
char aHTTPget[] = "get"; |
char aHTTPhead[] = "head"; |
char aHTTPpost[] = "post"; |
/programs/cmm/lib/obj/network.h |
---|
12,7 → 12,7 |
dword network_lib = #a_network_lib; |
char a_network_lib[]="/sys/lib/network.obj"; |
dword network_lib_init = #aLib_init; |
dword network_lib_init = #aInet_init; |
dword inet_addr = #aInet_addr; //"192.168.0.1" -> dword IP |
dword inet_ntoa = #aInet_ntoa; |
dword getaddrinfo = #aGetaddrinfo; |
22,7 → 22,7 |
dword freeaddrinfo = #aFreeaddrinfo; |
$DD 2 dup 0 |
char aLib_init[] = "lib_init"; |
char aInet_init[] = "lib_init"; |
char aInet_addr[] = "inet_addr"; |
char aInet_ntoa[] = "inet_ntoa"; |
char aGetaddrinfo[] = "getaddrinfo"; |
/programs/cmm/lib/patterns/http_downloader.h |
---|
90,7 → 90,7 |
dword Start(); |
void Stop(); |
bool MonitorProgress(); |
} downloader; |
}; |
dword DOWNLOADER::Start(dword _url) |
{ |
/programs/cmm/liza/liza.c |
---|
16,20 → 16,22 |
//*.obj libraries |
#include "../lib/obj/box_lib.h" |
#include "../lib/obj/network.h" |
#include "../lib/obj/http.h" |
#include "../lib/obj/libio.h" |
#include "../lib/obj/libimg.h" |
#include "../lib/obj/netcode.h" |
#include "../lib/obj/iconv.h" |
//patternts |
#include "..\lib\patterns\history.h" |
#include "../lib/patterns/history.h" |
#include "../lib/patterns/http_downloader.h" |
//images |
byte letter_icons[sizeof(file "img/letter_icons.raw")] = FROM "img/letter_icons.raw"; |
#include "img/letter_icons.h" |
struct mockup |
{ |
dword transfer; |
} http = {0}; |
_http http = {0}; |
bool old_tag_parser_mode = false; |
bool debug_mode = false; |
char accept_language[]= "Accept-Language: ru\n"; |
//connection algorithm |
enum { |