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:

committed by
Alexander Medvednikov

parent
febd532c4a
commit
0796e1dd69
8
vlib/net/init_nix.v
Normal file
8
vlib/net/init_nix.v
Normal 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 }
|
Reference in New Issue
Block a user