Browse Source

added getSocket.

Nicolas Cannasse 19 years ago
parent
commit
d760ee5f22
1 changed files with 8 additions and 0 deletions
  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