Explorar el Código

added getSocket.

Nicolas Cannasse hace 19 años
padre
commit
d760ee5f22
Se han modificado 1 ficheros con 8 adiciones y 0 borrados
  1. 8 0
      std/haxe/remoting/SocketConnection.hx

+ 8 - 0
std/haxe/remoting/SocketConnection.hx

@@ -236,6 +236,10 @@ class SocketConnection extends AsyncConnection {
 		return sc;
 	}
 
+	public static function getSocket( cnx : SocketConnection ) : neko.net.Socket {
+		return cnx.__data;
+	}
+
 	#else flash
 
 	public static function socketConnect( s : XMLSocket ) {
@@ -267,6 +271,10 @@ class SocketConnection extends AsyncConnection {
 		return sc;
 	}
 
+	public static function getSocket( cnx : SocketConnection ) : XMLSocket {
+		return cnx.__data;
+	}
+
 	#else error
 	#end