|
@@ -89,12 +89,16 @@ class Socket {
|
|
|
|
|
|
public function peer() : { host : Host, port : Int } {
|
|
|
var a : Dynamic = socket_peer(__s);
|
|
|
- return { host : a[0], port : a[1] };
|
|
|
+ var h = new Host("127.0.0.1");
|
|
|
+ h.ip = a[0];
|
|
|
+ return { host : h, port : a[1] };
|
|
|
}
|
|
|
|
|
|
public function host() : { host : Host, port : Int } {
|
|
|
var a : Dynamic = socket_host(__s);
|
|
|
- return { host : a[0], port : a[1] };
|
|
|
+ var h = new Host("127.0.0.1");
|
|
|
+ h.ip = a[0];
|
|
|
+ return { host : h, port : a[1] };
|
|
|
}
|
|
|
|
|
|
public function setTimeout( timeout : Float ) {
|