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