| Package | com.adobe.net.proxies |
| Class | public class RFC2817Socket |
| Inheritance | RFC2817Socket flash.net.Socket |
| Subclasses | SocketHelper |
| Method | Defined by | ||
|---|---|---|---|
|
RFC2817Socket(host:String = null, port:int = 0)
Construct a new RFC2817Socket object.
| RFC2817Socket | ||
|
addEventListener(type:String, listener:Function, useCapture:Boolean = false, priority:int = 0.0, useWeakReference:Boolean = false):void
| RFC2817Socket | ||
|
connect(host:String, port:int):void
Connect to the specified host over the specified port.
| RFC2817Socket | ||
|
setProxyInfo(host:String, port:int):void
Set the proxy host and port number.
| RFC2817Socket | ||
| RFC2817Socket | () | constructor |
public function RFC2817Socket(host:String = null, port:int = 0)Construct a new RFC2817Socket object. If you pass in the host and the port, no proxy will be used. If you want to use a proxy, instantiate with no arguments, call setProxyInfo, then call connect.
Parametershost:String (default = null) |
|
port:int (default = 0) |
| addEventListener | () | method |
public override function addEventListener(type:String, listener:Function, useCapture:Boolean = false, priority:int = 0.0, useWeakReference:Boolean = false):voidParameters
type:String |
|
listener:Function |
|
useCapture:Boolean (default = false) |
|
priority:int (default = 0.0) |
|
useWeakReference:Boolean (default = false) |
| connect | () | method |
public override function connect(host:String, port:int):voidConnect to the specified host over the specified port. If you want your connection proxied, call the setProxyInfo function first.
Parametershost:String |
|
port:int |
| setProxyInfo | () | method |
public function setProxyInfo(host:String, port:int):voidSet the proxy host and port number. Your connection will only proxied if this function has been called.
Parametershost:String |
|
port:int |