Improved server example
This commit is contained in:
parent
463d993c28
commit
5bbc730ed4
2 changed files with 14 additions and 10 deletions
|
@ -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)
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue