Explorar o código

added getSocket.

Nicolas Cannasse %!s(int64=19) %!d(string=hai) anos
pai
achega
d760ee5f22
Modificáronse 1 ficheiros con 8 adicións e 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