Implementions
Methods
[src]
pub fn to_string(self): string {
return (self as _TcpAddr).to_string();
}
Returns a string representation.
[src]
pub fn to_string(self): string {
return (self as _TcpAddr).to_string();
}
Returns a string representation.
Returns a string representation.
[src]
pub fn parse(s: string): TcpAddr? {
if (let addr = _TcpAddr.parse(s)) {
return addr as TcpAddr;
} else {
return nil;
}
}
Parses a string representation of a TCP address.
[src]
pub fn parse(s: string): TcpAddr? {
if (let addr = _TcpAddr.parse(s)) {
return addr as TcpAddr;
} else {
return nil;
}
}
Parses a string representation of a TCP address.
Parses a string representation of a TCP address.
[src]
pub fn ip(self): Ip {
return (self as _TcpAddr).ip() as Ip;
}
Returns the IP address associated with this socket address.
[src]
pub fn ip(self): Ip {
return (self as _TcpAddr).ip() as Ip;
}
Returns the IP address associated with this socket address.
Returns the IP address associated with this socket address.
[src]
pub fn port(self): int {
return (self as _TcpAddr).port();
}
Returns the port number associated with this socket address.
[src]
pub fn port(self): int {
return (self as _TcpAddr).port();
}
Returns the port number associated with this socket address.
Returns the port number associated with this socket address.
[src]
pub fn set_ip(self, ip: Ip) {
(self as _TcpAddr).set_ip(ip as _Ip);
}
Changes the IP address associated with this socket address.
[src]
pub fn set_ip(self, ip: Ip) {
(self as _TcpAddr).set_ip(ip as _Ip);
}
Changes the IP address associated with this socket address.
Changes the IP address associated with this socket address.
[src]
pub fn set_port(self, port: int) {
(self as _TcpAddr).set_port(port);
}
Changes the port number associated with this socket address.
[src]
pub fn set_port(self, port: int) {
(self as _TcpAddr).set_port(port);
}
Changes the port number associated with this socket address.
Changes the port number associated with this socket address.