feat: add Std::Net — TCP sockets module

- C runtime: socket(), bind(), listen(), accept(), connect(), send(), recv(), close()
- library/std/Net.bux: Net_Create, Net_Bind, Net_Listen, Net_Accept, Net_Connect,
  Net_Send, Net_Recv, Net_Close, Net_SetReuse, Net_LastError
- examples/tcp_server.bux: echo server on 127.0.0.1:9000
- examples/tcp_client.bux: client that sends 'Hello from Bux!' and prints reply
This commit is contained in:
2026-06-05 20:32:10 +03:00
parent 7b3fa2c423
commit ba9f5dfd05
6 changed files with 251 additions and 0 deletions
+1
View File
@@ -0,0 +1 @@
[Package]
+5
View File
@@ -0,0 +1,5 @@
import Std::Net;
func Main() -> int {
let fd: int = Net::Create();
return 0;
}