Implemented package specific structs
This commit is contained in:
parent
d71bbd51cf
commit
8357aefc01
15 changed files with 121 additions and 78 deletions
|
@ -1,3 +1,10 @@
|
|||
struct sockaddr_in {
|
||||
sin_family Int16
|
||||
sin_port Int16
|
||||
sin_addr Int64
|
||||
sin_zero Int64
|
||||
}
|
||||
|
||||
socket(family Int, type Int, protocol Int) -> Int {
|
||||
return syscall(41, family, type, protocol)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue