mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
http: handle and print socket errors
This commit is contained in:

committed by
Alexander Medvednikov

parent
4f4ac45670
commit
a5ccc4673b
@ -4,5 +4,10 @@ module net
|
||||
#include <unistd.h>
|
||||
#include <netinet/in.h>
|
||||
#include <netdb.h>
|
||||
#include <errno.h>
|
||||
|
||||
fn init() int { return 1 }
|
||||
|
||||
fn error_code() int {
|
||||
return C.errno
|
||||
}
|
||||
|
Reference in New Issue
Block a user