2012-12-15 03:55:44 +04:00
|
|
|
|
//Network library
|
2015-07-22 21:32:54 +03:00
|
|
|
|
#ifndef INCLUDE_NETCODE_H
|
|
|
|
|
#define INCLUDE_NETCODE_H
|
2012-12-15 03:55:44 +04:00
|
|
|
|
|
2015-07-22 21:32:54 +03:00
|
|
|
|
#ifndef INCLUDE_KOLIBRI_H
|
|
|
|
|
#include "../lib/kolibri.h"
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
#ifndef INCLUDE_DLL_H
|
|
|
|
|
#include "../lib/dll.h"
|
|
|
|
|
#endif
|
2012-12-15 03:55:44 +04:00
|
|
|
|
dword netcode_lib = #a_netcode_lib;
|
2018-04-21 15:28:00 +03:00
|
|
|
|
char a_netcode_lib[]="/sys/lib/netcode.obj";
|
2012-12-15 03:55:44 +04:00
|
|
|
|
|
|
|
|
|
dword base64_encode = #aBase64_encode;
|
|
|
|
|
dword base64_decode = #aBase64_decode;
|
|
|
|
|
dword qp_decode = #aQp_decode;
|
2013-07-26 18:41:31 +04:00
|
|
|
|
$DD 2 dup 0
|
2012-12-15 03:55:44 +04:00
|
|
|
|
|
2018-04-21 15:28:00 +03:00
|
|
|
|
char aBase64_encode[] = "base64_encode";
|
|
|
|
|
char aBase64_decode[] = "base64_decode";
|
|
|
|
|
char aQp_decode[] = "qp_decode";
|
2012-12-15 03:55:44 +04:00
|
|
|
|
|
|
|
|
|
/*int base64_encode(char inp[], char outp[], int len);
|
|
|
|
|
Кодирование массива inp длиной len в массив outp (строку с '\0'). Функция возвращает длину outp.
|
|
|
|
|
|
|
|
|
|
int base64_decode(char inp[], char outp[], int len);
|
2015-07-22 21:32:54 +03:00
|
|
|
|
Декодирование массива inp длиной len в массив outp (строку с '\0'). Функция возвращает длину outp.*/
|
|
|
|
|
|
|
|
|
|
#endif
|