Added TCP_NODELAY version

This commit is contained in:
ftc
2023-03-04 08:57:52 +03:00
parent b88d21d4cf
commit 1f24ff5d52
2 changed files with 40 additions and 1 deletions
+5
View File
@@ -162,6 +162,11 @@ class IPSocket extends Socket
}
$this->connected = true;
}
public function setOption($option, $value)
{
socket_set_option($this->sock, SOL_SOCKET, $option, $value);
}
}
class UnixSocket extends Socket