Improved server example
This commit is contained in:
@ -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)
|
||||
}
|
Reference in New Issue
Block a user