ProxyConnection
type ProxyConnection = ProxyConnection
A Proxy connection.
Implementions
Methods
connect
pub fn connect(scheme: ProxyScheme, host: string, port: int): ProxyConnection throws IoError
[src]
pub fn connect(scheme: ProxyScheme, host: string, port: int): ProxyConnection throws IoError {
return try _ProxyConnection.connect(scheme, host, port) as ProxyConnection;
}
Opens a new connection via the given proxy scheme.
connect
pub fn connect(scheme: ProxyScheme, host: string, port: int): ProxyConnection throws IoError
[src]
pub fn connect(scheme: ProxyScheme, host: string, port: int): ProxyConnection throws IoError {
return try _ProxyConnection.connect(scheme, host, port) as ProxyConnection;
}
Opens a new connection via the given proxy scheme.
Opens a new connection via the given proxy scheme.
local_addr
pub fn local_addr(self): Addr?
[src]
pub fn local_addr(self): Addr? {
return try? (self as _ProxyConnection).local_addr() as TcpAddr;
}
local_addr
pub fn local_addr(self): Addr?
[src]
pub fn local_addr(self): Addr? {
return try? (self as _ProxyConnection).local_addr() as TcpAddr;
}
remote_addr
pub fn remote_addr(self): Addr?
[src]
pub fn remote_addr(self): Addr? {
return try? (self as _ProxyConnection).remote_addr() as TcpAddr;
}
remote_addr
pub fn remote_addr(self): Addr?
[src]
pub fn remote_addr(self): Addr? {
return try? (self as _ProxyConnection).remote_addr() as TcpAddr;
}
[src]
pub fn close(self) throws IoError {
try (self as _ProxyConnection).close();
}
[src]
pub fn close(self) throws IoError {
try (self as _ProxyConnection).close();
}
[src]
pub fn read(self, buf: Bytes): int throws IoError {
return try (self as _ProxyConnection).read(buf);
}
[src]
pub fn read(self, buf: Bytes): int throws IoError {
return try (self as _ProxyConnection).read(buf);
}
[src]
pub fn write(self, bytes: Bytes): int throws IoError {
return try (self as _ProxyConnection).write(bytes);
}
[src]
pub fn write(self, bytes: Bytes): int throws IoError {
return try (self as _ProxyConnection).write(bytes);
}