v/vlib/net/net_nix.c.v

27 lines
343 B
V
Raw Normal View History

2020-08-20 23:01:37 +02:00
module net
#include <unistd.h>
#include <sys/select.h>
2021-05-22 09:53:19 +02:00
// inet.h is needed for inet_ntop on macos
2020-08-20 23:01:37 +02:00
#include <arpa/inet.h>
#include <netdb.h>
#include <errno.h>
#include <fcntl.h>
2021-05-22 09:53:19 +02:00
#flag solaris -lsocket
2020-08-20 23:01:37 +02:00
fn error_code() int {
return C.errno
}
fn init() {
}
pub const (
msg_nosignal = 0x4000
)
const (
error_ewouldblock = C.EWOULDBLOCK
)