You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-13 13:31:48 +00:00
Display set_nodelay to GDScript
Pass enabled arg
Rename set_nodelay to set_no_delay
Add description to the method
Change description
(cherry picked from commit 87adf9cfba)
This commit is contained in:
committed by
Hein-Pieter van Braam
parent
ef49c166f6
commit
5481ece976
@@ -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));
|
||||
|
||||
Reference in New Issue
Block a user