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

x.net: new net module (#6130)

This commit is contained in:
Emily Hudson
2020-08-20 22:01:37 +01:00
committed by GitHub
parent 9b171b76e0
commit b88569c845
13 changed files with 2056 additions and 0 deletions

28
vlib/x/net/net_nix.c.v Normal file
View File

@ -0,0 +1,28 @@
module net
#include <unistd.h>
#include <sys/socket.h>
#include <sys/types.h>
#include <sys/select.h>
#include <arpa/inet.h>
#include <netinet/in.h>
#include <netdb.h>
#include <errno.h>
#include <fcntl.h>
fn error_code() int {
return C.errno
}
fn init() {
}
pub const (
msg_nosignal = 0x4000
)
const (
error_ewouldblock = C.EWOULDBLOCK
)
#flag solaris -lsocket