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

net.socket: add s.peer_ip()

This commit is contained in:
Delyan Angelov
2020-07-02 22:27:36 +03:00
parent b89cbf3224
commit 5813d2bf72
3 changed files with 28 additions and 6 deletions

View File

@ -3,6 +3,7 @@ module net
#include <sys/socket.h>
#include <unistd.h>
#include <netinet/in.h>
#include <arpa/inet.h>
#include <netdb.h>
#include <errno.h>
fn error_code() int {