Improved server example

This commit is contained in:
Eduard Urbach 2025-02-06 17:11:57 +01:00
parent 463d993c28
commit 5bbc730ed4
Signed by: eduard
GPG key ID: 49226B848C78F6C8
2 changed files with 14 additions and 10 deletions

View file

@ -12,4 +12,8 @@ bind(fd Int, address Pointer, length Int) -> Int {
listen(fd Int, backlog Int) -> Int {
return syscall(50, fd, backlog)
}
setsockopt(fd Int, level Int, optname Int, optval Pointer, optlen Int) -> Int {
return syscall(54, fd, level, optname, optval, optlen)
}