summaryrefslogtreecommitdiffstats
path: root/drivers/unix/net_socket_posix.h
diff options
context:
space:
mode:
authorFabio Alessandrelli <fabio.alessandrelli@gmail.com>2018-09-13 15:47:00 +0200
committerFabio Alessandrelli <fabio.alessandrelli@gmail.com>2018-09-13 16:05:47 +0200
commit01c3c1a07bfbaf6df8b1154e5ef31ecc890b03a3 (patch)
treeaf355216c986b4db161278f822e9da264f53859c /drivers/unix/net_socket_posix.h
parent9b31d2da1c20807928ac2aea41a187184f9ee051 (diff)
downloadredot-engine-01c3c1a07bfbaf6df8b1154e5ef31ecc890b03a3.tar.gz
Properly initialize Winsock on startup
Also fix typo in _get_last_error which caused Winsock connect to fail.
Diffstat (limited to 'drivers/unix/net_socket_posix.h')
-rw-r--r--drivers/unix/net_socket_posix.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/unix/net_socket_posix.h b/drivers/unix/net_socket_posix.h
index ee178136f3..8177e01987 100644
--- a/drivers/unix/net_socket_posix.h
+++ b/drivers/unix/net_socket_posix.h
@@ -67,6 +67,7 @@ protected:
public:
static void make_default();
+ static void cleanup();
virtual Error open(Type p_sock_type, IP::Type &ip_type);
virtual void close();