[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[tor-commits] [flashproxy/master] Changes I needed to make return_of_the_rtmfpcat.as compile.



commit bbfb3e242a38e789e68a160abf4dede04ffbe3ca
Author: David Fifield <david@xxxxxxxxxxxxxxx>
Date:   Thu May 26 22:28:00 2011 -0700

    Changes I needed to make return_of_the_rtmfpcat.as compile.
---
 return_of_the_rtmfpcat.as |   14 ++++++--------
 1 files changed, 6 insertions(+), 8 deletions(-)

diff --git a/return_of_the_rtmfpcat.as b/return_of_the_rtmfpcat.as
index ed582b8..a4ec182 100644
--- a/return_of_the_rtmfpcat.as
+++ b/return_of_the_rtmfpcat.as
@@ -14,15 +14,13 @@ package
     import flash.events.ProgressEvent;
     import flash.events.SecurityErrorEvent;
     import flash.utils.ByteArray;
+    import flash.utils.clearTimeout;
     import flash.utils.setTimeout;
     import flash.utils.clearInterval;
     import flash.utils.setInterval;
     import flash.utils.setTimeout;
     import flash.net.NetConnection;
 
-    import rtmfp.RTMFPSocket;
-    import rtmfp.events.RTMFPSocketEvent;
-
     public class return_of_the_rtmfpcat extends Sprite
     {
         /* David's relay (nickname 3VXRyxz67OeRoqHn) that also serves a
@@ -423,11 +421,11 @@ class RTMFPSocket extends EventDispatcher
         send_stream.publish(DATA); 
 
         recv_stream = new NetStream(circon, clientID);
-        var client:RTMFPSocketClient = new RTMFPSocketClient();
-        client.addEventListener(ProgressEvent.SOCKET_DATA, function (event:ProgressEvent):void {
+        var client_rtmfp:RTMFPSocketClient = new RTMFPSocketClient();
+        client_rtmfp.addEventListener(ProgressEvent.SOCKET_DATA, function (event:ProgressEvent):void {
             dispatchEvent(event);
         }, false, 0, true);
-        recv_stream.client = client;
+        recv_stream.client = client_rtmfp;
         recv_stream.play(DATA);
     }
 
@@ -469,9 +467,9 @@ class RTMFPSocket extends EventDispatcher
     }
 
 
-    public function readBytes(bytes:ByteArray):void
+    public function readBytes(bytes:ByteArray, offset:uint = 0, length:uint = 0):void
     {
-        recv_stream.client.bytes.readBytes(bytes);
+        recv_stream.client.bytes.readBytes(bytes, offset, length);
     }
 
     public function writeBytes(bytes:ByteArray):void



_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits