69,372
社区成员
发帖
与我相关
我的任务
分享
if(setsockopt(sControl,SOL_SOCKET,SO_SNDTIMEO,&timeout,sizeof(timeout))== -1)
{
perror("setsockopt SO_SNDTIMEO");
net_close(sControl);
return 0;
}
if(setsockopt(sControl,SOL_SOCKET,SO_RCVTIMEO,&timeout,sizeof(timeout))==-1)
{
perror("setsockopt SO_RCVTIMEO");
net_close(sControl);
return 0;
}
int ftplib::FtpXfer(const char *localfile, const char *path, ftphandle *nControl, accesstype type, transfermode mode)