Browse Source

added setFastSend

Nicolas Cannasse 16 years ago
parent
commit
f33807a8e3
2 changed files with 6 additions and 1 deletions
  1. 1 0
      doc/CHANGES.txt
  2. 5 1
      std/neko/net/Socket.hx

+ 1 - 0
doc/CHANGES.txt

@@ -40,6 +40,7 @@ TODO :
 	php : php.Lib.rethrow now works as expected
 	flash9 : fixed bug with SWC output and recursive types
 	flash8 : fixed inversed arguments in __new__
+	neko : added neko.net.Socket.setFastSend
 
 2009-03-22: 2.03
 	optimized Type.enumEq : use index instead of tag comparison for neko/flash9/php

+ 5 - 1
std/neko/net/Socket.hx

@@ -113,6 +113,10 @@ class Socket {
 		socket_set_blocking(__s,b);
 	}
 
+	public function setFastSend( b : Bool ) {
+		socket_set_fast_send(__s,b);
+	}
+
 	public static function newUdpSocket() {
 		return new Socket(socket_new(true));
 	}
@@ -170,5 +174,5 @@ class Socket {
 	private static var socket_set_timeout = neko.Lib.load("std","socket_set_timeout",2);
 	private static var socket_shutdown = neko.Lib.load("std","socket_shutdown",3);
 	private static var socket_set_blocking = neko.Lib.load("std","socket_set_blocking",2);
-
+	private static var socket_set_fast_send = neko.Lib.loadLazy("std","socket_set_fast_send",2);
 }