[flashproxy/js] Add a ProxyPair.close method.

5 Apr
2012
5 Apr
'12
7:11 a.m.
commit aae876084a5d13a928e874e3bac53cec4689d65c Author: David Fifield <david@bamsoftware.com> Date: Wed Apr 4 22:40:42 2012 -0700 Add a ProxyPair.close method. --- flashproxy.js | 5 +++++ 1 files changed, 5 insertions(+), 0 deletions(-) diff --git a/flashproxy.js b/flashproxy.js index 9f3fdc6..8c29d82 100644 --- a/flashproxy.js +++ b/flashproxy.js @@ -536,6 +536,11 @@ function ProxyPair(client_addr, relay_addr, rate_limit) return ws.readyState == ws.CLOSED; } + this.close = function() { + this.client_s.close(); + this.relay_s.close(); + }; + /* Send as much data as the rate limit currently allows. */ this.flush = function() { var busy;
4825
Age (days ago)
4825
Last active (days ago)
0 comments
1 participants
participants (1)
-
dcf@torproject.org