Improved server example

This commit is contained in:
2025-02-06 17:11:57 +01:00
parent 94a0e81920
commit cae3092df7
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)
}