浏览代码

added getSocket.

Nicolas Cannasse 19 年之前
父节点
当前提交
d760ee5f22
共有 1 个文件被更改,包括 8 次插入0 次删除
  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