tinyblocks-socket, -ssl, -http e -archive: internet e arquivos compactados em blocos
socket: conexao TCP como TbStream (fluxo com classe read/write/close) e blocos para conectar, enviar, receber e resolver endereco. ssl: embrulha um TbStream TCP em TLS (OpenSSL), com SNI e certificado conferido pelo sistema e pelo nome do host. http: cliente HTTP/1.1 so sobre TbStream; https:// quando a ssl esta carregada; Content-Length, chunked e redirecionamentos; GET e POST de texto e download em segundo plano (.parte ate terminar) com progresso. archive: lista e extrai .tar e .tar.gz (zlib), nomes longos GNU/pax; recusa entradas com "../" ou caminho absoluto. As camadas se acham pelas tabelas no lib_userdata, sem linkar umas com as outras. test-http usa um servidor local (e a internet, se houver); test-archive cria os arquivos com tar e Python. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
05fdb094ed
commit
066bb295ed
20 files changed
+1689
-3
No files matched your search
@@ -35,6 +35,10 @@
|
||||
#include <tb_number.h>
|
||||
#include <tb_string.h>
|
||||
#include <tb_vector.h>
|
||||
#include <tb_socket.h>
|
||||
#include <tb_ssl.h>
|
||||
#include <tb_http.h>
|
||||
#include <tb_archive.h>
|
||||
#include <tb_tensor.h>
|
||||
#include <tb_ai.h>
|
||||
#include <tb_api.h>
|
||||
@@ -80,6 +84,10 @@ int main(int argc, char** argv) {
|
||||
reg_core(rt, "tinyblocks-pen", tb_pen_get_library);
|
||||
reg_core(rt, "tinyblocks-fs", tb_fs_get_library);
|
||||
reg_core(rt, "tinyblocks-os", tb_os_get_library);
|
||||
reg_core(rt, "tinyblocks-socket", tb_socket_get_library);
|
||||
reg_core(rt, "tinyblocks-ssl", tb_ssl_get_library);
|
||||
reg_core(rt, "tinyblocks-http", tb_http_get_library);
|
||||
reg_core(rt, "tinyblocks-archive", tb_archive_get_library);
|
||||
reg_core(rt, "tinyblocks-tensor", tb_tensor_get_library);
|
||||
reg_core(rt, "tinyblocks-ai", tb_ai_get_library);
|
||||
|
||||
|
||||
Reference in new issue
Block a user