mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
29 lines
371 B
V
29 lines
371 B
V
|
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
|