2019-08-23 23:48:40 +00:00
|
|
|
module net
|
|
|
|
|
|
|
|
#include <sys/socket.h>
|
|
|
|
#include <unistd.h>
|
|
|
|
#include <netinet/in.h>
|
|
|
|
#include <netdb.h>
|
2019-10-10 17:24:36 +00:00
|
|
|
#include <errno.h>
|
2019-10-09 18:01:31 +00:00
|
|
|
|
2019-10-10 17:24:36 +00:00
|
|
|
fn error_code() int {
|
|
|
|
return C.errno
|
|
|
|
}
|
2019-11-18 21:13:14 +00:00
|
|
|
|
|
|
|
pub const (
|
|
|
|
MSG_NOSIGNAL = 0x4000
|
|
|
|
)
|