Browse Source

added hl.uv.Tcp.noDelay

ncannasse 7 years ago
parent
commit
4c1a7a9190
1 changed files with 7 additions and 0 deletions
  1. 7 0
      std/hl/uv/Tcp.hx

+ 7 - 0
std/hl/uv/Tcp.hx

@@ -24,6 +24,10 @@ class Tcp extends Stream {
 		return new Stream(client);
 	}
 
+	public function noDelay(b:Bool) {
+		tcp_nodelay_wrap(handle, b);
+	}
+
 	static function tcp_init_wrap( loop : Loop ) : HandleData {
 		return null;
 	}
@@ -40,4 +44,7 @@ class Tcp extends Stream {
 		return null;
 	}
 
+	static function tcp_nodelay_wrap( h : HandleData, b : Bool ) : Void {
+	}
+
 }