we aim Freedos 1.4 for first port of the sdk and shifting from Purebasic to Freebasic (Possibility of Purebasic Websoket Module we see later)...
- (SDK Shell / New IDE / Web Browser / Fossil vcs ! / Runtime output) all in one...
🇫🇷 Version Française
- Introduction
- Architecture
- Framing JSON
- Exemples PureBasic
- Sécurité
- Fonctionnalités actuelles
- Prochaines étapes
- Vision du Projet – GF NetStack
- CLI – Interface en ligne de commande
TLSv2 est une couche de communication sécurisée basée sur :
- TLS (OpenSSL)
- Un framing JSON robuste (4 bytes + UTF‑8)
- Un wrapper C stable
- Des bindings PureBasic fonctionnels
- Une architecture prête pour Fortran, Lua, PB, C, etc.
Objectif : fournir une base solide pour créer des protocoles applicatifs sans se battre avec TLS ou les buffers.
- Non‑bloquant
- Multi‑clients
- Basé sur
select() - Handshake TLS automatique
- Callbacks :
on_client_connected,on_client_disconnected,on_json_received
- Bloquant
tlsv2_client_send_json()tlsv2_client_recv_json()
- Import direct du
.so/.dll/.dylib - Callbacks PB → C
ReceiveJSON()sécurisé
| Type | Description |
|---|---|
"text" |
Messages texte |
"command" |
Commandes (PING → PONG) |
"table" |
Réponses tabulaires |
[4 bytes length][JSON UTF‑8 payload]
- Longueur = uint32 big‑endian
- UTF‑8 propre
- Compatible tous langages
- Dispatch automatique
- Réponses TEXT, PING/PONG, TABLE
- Envoie TEXT → reçoit réponse
- Envoie PING → reçoit PONG
- Envoie TABLE → reçoit données
- TLS 1.2+
- Certificat PEM
- Fermeture propre (SSL_shutdown)
- Serveur TLS multi‑clients
- Client TLS stable
- Framing JSON robuste
- PureBasic serveur + client
- PING/PONG
- TEXT → reply
- TABLE → données
- Buffers synchronisés
- Aucun crash
.gitattributespropre
- Bindings Fortran
- Module PB “TLSv2Client”
- Authentification
- Gestion d’erreurs JSON
- Intégration SQLite réelle
- Documentation bilingue
- Handshake WebSocket
- Frames texte/binaire
- Ping/Pong natif
- Envoi d’e‑mails
- Auth LOGIN / PLAIN
- MIME
- Récupération d’e‑mails
- Listing / téléchargement / suppression
- GET / POST / PUT / DELETE
- JSON intégré
- Connexion distante
- Tables JSON
- TLS
- Requêtes préparées
- JSONB
- TLS
- Requêtes simples
- Fichier
.db - Requêtes SQL
- Tables JSON
- Requêtes préparées
GF.Net.TLSv2GF.Net.WebSocketGF.Net.SMTPGF.Net.POP3GF.Net.HTTPGF.DB.SQLiteCloudGF.DB.PostgreSQLGF.DB.MySQLGF.DB.SQLite
Créer un SDK réseau complet, moderne, sécurisé, modulaire.
(Ne fonctionne pas actuellement)
Commandes :
doctor, new, build, clean, run
🇬🇧 English Version
- Introduction
- Architecture
- JSON Framing
- PureBasic Examples
- Security
- Current Features
- Next Steps
- Project Vision – GF NetStack
- CLI – Command Line Interface
TLSv2 is a secure communication layer built on:
- TLS (OpenSSL)
- Robust JSON framing
- Clean C wrapper
- PureBasic bindings
- Fortran/Lua/PB/C ready
Non‑blocking, multi‑client, callbacks.
Blocking, simple, stable.
Direct import, safe JSON receive.
TEXT, COMMAND, TABLE.
[4 bytes length][JSON UTF‑8 payload]
Server + client examples included.
TLS 1.2+, PEM certs.
Stable TLS, JSON framing, PB examples, no crashes.
Fortran bindings, PB module, SQLite, auth, docs.
Handshake, frames, ping/pong.
Email sending, MIME.
Email retrieval.
REST‑friendly.
SQLiteCloud, PostgreSQL, MySQL/MariaDB, SQLite local.
Unified API.
Complete, modern, secure SDK.
(Not working right now...)
Commands: doctor, new, build, clean, run.
Guillaume Foisy
Passionné par la modernisation de l’écosystème Fortran95 & PureBasic
