1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

net: add basic unix socket support (#8642)

This commit is contained in:
bettafish04
2021-02-08 23:48:23 +01:00
committed by GitHub
parent 09cff69919
commit 1a2ae0aead
3 changed files with 31 additions and 17 deletions

View File

@@ -3,6 +3,7 @@ module net
#include <unistd.h>
#include <sys/socket.h>
#include <sys/types.h>
#include <sys/un.h>
#include <sys/select.h>
#include <arpa/inet.h>
#include <netinet/in.h>
@@ -10,6 +11,7 @@ module net
#include <errno.h>
#include <fcntl.h>
#flag solaris -lsocket
fn error_code() int {
return C.errno
}