Add tcp module

This commit is contained in:
Alexander Heldt
2025-11-09 21:29:59 +01:00
parent 8bbfae4592
commit 77f441dea4
3 changed files with 305 additions and 0 deletions

8
src/tcp/tcp_ffi.erl Normal file
View File

@@ -0,0 +1,8 @@
-module(tcp_ffi).
-export([send/2]).
send(Socket, Packet) ->
case gen_tcp:send(Socket, Packet) of
ok -> {ok, nil};
Res -> Res
end.