2019-08-24 01:48:40 +02:00
|
|
|
module net
|
|
|
|
|
|
|
|
#include <sys/socket.h>
|
|
|
|
#include <unistd.h>
|
|
|
|
#include <netinet/in.h>
|
|
|
|
#include <netdb.h>
|
2019-10-10 19:24:36 +02:00
|
|
|
#include <errno.h>
|
|
|
|
fn error_code() int {
|
2019-12-21 23:41:42 +01:00
|
|
|
return C.errno
|
2019-10-10 19:24:36 +02:00
|
|
|
}
|
2019-11-18 22:13:14 +01:00
|
|
|
|
|
|
|
pub const (
|
|
|
|
MSG_NOSIGNAL = 0x4000
|
|
|
|
)
|
2019-12-21 23:41:42 +01:00
|
|
|
|
2020-03-21 09:48:02 +01:00
|
|
|
#flag solaris -lsocket
|
|
|
|
|