Q
qinglan.ai
Unregistered / Unconfirmed
GUEST, unregistred user!
file1:=Tidftp.Create(nil);
IdIOHandlerSocket1:=tIdIOHandlerSocket.Create(nil);
IdSocksInfo1:=tIdSocksInfo.Create(nil);
file1.Host:='127.0.0.1';
file1.Username:='qlql';
file1.Password:='123123';
file1.Port:=21;
upfile:='c:/ftp.exe';
file1.IOHandler:=IdIOHandlerSocket1;
IdIOHandlerSocket1.SocksInfo :=IdSocksInfo1;
IdSocksInfo1.Version:=svSocks5;
IdSocksInfo1.Host:='127.0.0.1';
IdSocksInfo1.Port:=1811;
IdSocksInfo1.Username:='lanlan';
IdSocksInfo1.Password:='123123';
IdSocksInfo1.Authentication:=saUsernamePassword;
file1.ProxySettings.Host:='127.0.0.1';
file1.ProxySettings.Port:=1811;
file1.ProxySettings.UserName:='lanlan';
file1.ProxySettings.Password:='123123';
file1.ProxySettings.ProxyType:=fpcmHttpProxyWithFtp;
file1.Passive:=true;
以上代码为何实现不了socks5代理 ?sock5服务器可以连接 但是显示了一个control socket 1488 is writable 就不动了 晕死~~
IdIOHandlerSocket1:=tIdIOHandlerSocket.Create(nil);
IdSocksInfo1:=tIdSocksInfo.Create(nil);
file1.Host:='127.0.0.1';
file1.Username:='qlql';
file1.Password:='123123';
file1.Port:=21;
upfile:='c:/ftp.exe';
file1.IOHandler:=IdIOHandlerSocket1;
IdIOHandlerSocket1.SocksInfo :=IdSocksInfo1;
IdSocksInfo1.Version:=svSocks5;
IdSocksInfo1.Host:='127.0.0.1';
IdSocksInfo1.Port:=1811;
IdSocksInfo1.Username:='lanlan';
IdSocksInfo1.Password:='123123';
IdSocksInfo1.Authentication:=saUsernamePassword;
file1.ProxySettings.Host:='127.0.0.1';
file1.ProxySettings.Port:=1811;
file1.ProxySettings.UserName:='lanlan';
file1.ProxySettings.Password:='123123';
file1.ProxySettings.ProxyType:=fpcmHttpProxyWithFtp;
file1.Passive:=true;
以上代码为何实现不了socks5代理 ?sock5服务器可以连接 但是显示了一个control socket 1488 is writable 就不动了 晕死~~