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>
|
2019-10-09 20:01:31 +02:00
|
|
|
|
|
|
|
fn init() int { return 1 }
|
2019-10-10 19:24:36 +02:00
|
|
|
|
|
|
|
fn error_code() int {
|
|
|
|
return C.errno
|
|
|
|
}
|