瀏覽代碼

- neko.net package

Laurent Bedubourg 19 年之前
父節點
當前提交
a28b0f150b
共有 1 個文件被更改,包括 3 次插入3 次删除
  1. 3 3
      std/mtwin/net/Ftp.hx

+ 3 - 3
std/mtwin/net/Ftp.hx

@@ -25,8 +25,8 @@
 package mtwin.net;
 package mtwin.net;
 
 
 import neko.io.Eof;
 import neko.io.Eof;
-import neko.io.Socket;
-import neko.io.Socket.Host;
+import neko.net.Socket;
+import neko.net.Host;
 
 
 /**
 /**
 	Handles FTP protocol.	
 	Handles FTP protocol.	
@@ -68,7 +68,7 @@ class Ftp {
 	public function new( host:String, ?port:Int ){
 	public function new( host:String, ?port:Int ){
 		debug = false;
 		debug = false;
 		passiveMode = true;
 		passiveMode = true;
-		this.host = Socket.resolve(host);
+		this.host = new Host(host);
 		this.port = if (port != null) port else 21;
 		this.port = if (port != null) port else 21;
 		socket = new Socket();
 		socket = new Socket();
 		socket.connect(this.host, this.port);
 		socket.connect(this.host, this.port);