我现在有如下的程序片断:
CInternetSession session;
CFtpConnection *pConnection=NULL;
try {
pConnection=session.GetFtpConnection(strServer);
}
catch(CInternetException *ex) {
ex->Delete();
pConnection=NULL;
}
//...
现在问题是,当GetFtpConnection函数运行失败时,需要等待很长的时间,请问怎样才可以让这个时间变得短一点,应该在哪里进行设置,最好可以给出相关的程序片断,谢谢!
CInternetSession session;
CFtpConnection *pConnection=NULL;
try {
pConnection=session.GetFtpConnection(strServer);
}
catch(CInternetException *ex) {
ex->Delete();
pConnection=NULL;
}
//...
现在问题是,当GetFtpConnection函数运行失败时,需要等待很长的时间,请问怎样才可以让这个时间变得短一点,应该在哪里进行设置,最好可以给出相关的程序片断,谢谢!
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货