From 87adf9cfbab00a40aad483b4e709518d5f61b6d1 Mon Sep 17 00:00:00 2001 From: Marlon Henry Schweigert Date: Tue, 30 Jan 2018 13:22:15 -0200 Subject: Display set_nodelay to GDScript Pass enabled arg Rename set_nodelay to set_no_delay Add description to the method Change description --- drivers/windows/stream_peer_tcp_winsock.cpp | 2 +- drivers/windows/stream_peer_tcp_winsock.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'drivers/windows') diff --git a/drivers/windows/stream_peer_tcp_winsock.cpp b/drivers/windows/stream_peer_tcp_winsock.cpp index d6a320fb5e..55775fc231 100644 --- a/drivers/windows/stream_peer_tcp_winsock.cpp +++ b/drivers/windows/stream_peer_tcp_winsock.cpp @@ -332,7 +332,7 @@ Error StreamPeerTCPWinsock::connect_to_host(const IP_Address &p_host, uint16_t p return OK; }; -void StreamPeerTCPWinsock::set_nodelay(bool p_enabled) { +void StreamPeerTCPWinsock::set_no_delay(bool p_enabled) { ERR_FAIL_COND(!is_connected_to_host()); int flag = p_enabled ? 1 : 0; setsockopt(sockfd, IPPROTO_TCP, TCP_NODELAY, (char *)&flag, sizeof(int)); diff --git a/drivers/windows/stream_peer_tcp_winsock.h b/drivers/windows/stream_peer_tcp_winsock.h index 9be8414878..a0177d374e 100644 --- a/drivers/windows/stream_peer_tcp_winsock.h +++ b/drivers/windows/stream_peer_tcp_winsock.h @@ -81,7 +81,7 @@ public: static void make_default(); static void cleanup(); - virtual void set_nodelay(bool p_enabled); + virtual void set_no_delay(bool p_enabled); StreamPeerTCPWinsock(); ~StreamPeerTCPWinsock(); -- cgit v1.2.3