Skip to content
Snippets Groups Projects
Commit 3ea109aa authored by Richard Alam's avatar Richard Alam
Browse files

- port test connection

parent 6402966f
No related branches found
No related tags found
No related merge requests found
...@@ -18,16 +18,18 @@ ...@@ -18,16 +18,18 @@
*/ */
package org.bigbluebutton.core.managers { package org.bigbluebutton.core.managers {
import flash.net.NetConnection; import flash.net.NetConnection;
import org.bigbluebutton.core.Options;
import org.bigbluebutton.main.model.options.PortTestOptions;
import org.bigbluebutton.main.model.users.IMessageListener; import org.bigbluebutton.main.model.users.IMessageListener;
import org.bigbluebutton.main.model.users.NetConnectionDelegate; import org.bigbluebutton.main.model.users.NetConnectionDelegate;
public class ConnectionManager { public class ConnectionManager {
private var connDelegate:NetConnectionDelegate; private var connDelegate:NetConnectionDelegate;
[Bindable] private var _isTunnelling:Boolean = false;
public var isTunnelling:Boolean = false;
private var portTestOptions : PortTestOptions;
public function ConnectionManager() { public function ConnectionManager() {
connDelegate = new NetConnectionDelegate(); connDelegate = new NetConnectionDelegate();
} }
...@@ -45,6 +47,30 @@ package org.bigbluebutton.core.managers { ...@@ -45,6 +47,30 @@ package org.bigbluebutton.core.managers {
connDelegate.disconnect(onUserAction); connDelegate.disconnect(onUserAction);
} }
public function initPortTestOption():void {
portTestOptions = Options.getOptions(PortTestOptions) as PortTestOptions;
}
public function useProtocol(tunnel:Boolean):void {
_isTunnelling = tunnel;
}
public function get isTunnelling():Boolean {
return _isTunnelling;
}
public function get portTestHost():String {
return portTestOptions.host;
}
public function get portTestApplication():String {
return portTestOptions.application;
}
public function get portTestTimeout():Number {
return portTestOptions.timeout;
}
public function addMessageListener(listener:IMessageListener):void { public function addMessageListener(listener:IMessageListener):void {
connDelegate.addMessageListener(listener); connDelegate.addMessageListener(listener);
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment