1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

socket: no need to initialize WinSock on each request

This commit is contained in:
vitalyster
2019-10-09 21:01:31 +03:00
committed by Alexander Medvednikov
parent febd532c4a
commit 0796e1dd69
6 changed files with 38 additions and 34 deletions

8
vlib/net/init_nix.v Normal file
View File

@ -0,0 +1,8 @@
module net
#include <sys/socket.h>
#include <unistd.h>
#include <netinet/in.h>
#include <netdb.h>
fn init() int { return 1 }