91av视频/亚洲h视频/操亚洲美女/外国一级黄色毛片 - 国产三级三级三级三级

  • 大小: 43KB
    文件類型: .rar
    金幣: 2
    下載: 0 次
    發布日期: 2021-05-16
  • 語言: C/C++
  • 標簽: c++??

資源簡介

內容索引:VC/C++源碼,網絡相關,FTP   Ftp客戶端與服務器VC++完整版,是一個比較簡單的ftp程序,但是程序提供了各種接口,能夠讓讀者看法出各種復雜的ftp程序,程序中的各個程序模塊均已經實現,以上所有程序在VC6.0中調試通過   目錄ftp服務器是一個基于控制臺的ftp服務器程序,能夠實現大部分的FTP的服務器程序;   注意:    a.帳號密碼為toldo;    b.主目錄為c:/temp,在連接之前請先建立;

資源截圖

代碼片段和文件信息

/*/////////////////////////////////////////////////////////////////////
FTPclient.cpp?(c)?GDI?1999
V1.0.0?(10/4/99)
Phil?Anderson.?philip@gd-ind.com
Download?by?http://www.codefans.net
Simple?FTP?client?functionality.?If?you?have?any?problems?with?it
please?tell?me?about?them?(or?better?still?e-mail?me?the?fixed
code).?Please?feel?free?to?use?this?code?however?you?wish?although
if?you?make?changes?please?put?your?name?in?the?source?&?comment?what
you?did.

Nothing?awesome?going?on?here?at?all?(all?sockets?are?used?in
synchronous?blocking?mode)?but?it?does?the?following
things?WinInet?doesn‘t?seem?to:
*?Supports?loads?of?different?firewalls?(I?think?I?don‘t
??have?access?to?all?types?so?they?haven‘t?all?been?fully
??tested?yet)
*?Allows?you?to?execute?any?command?on?the?FTP?server
*?Adds?10K?to?your?app?install?rather?than?1Mb?#;-)

Functions?return?TRUE?if?everything?went?OK?FALSE?if?there?was?an
error.?A?message?describing?the?outcome?(normally?the?one?returned
from?the?server)?will?be?in?m_retmsg?on?return?from?the?function.
There?are?a?few?error?msgs?in?the?app‘s?string?table?that?you‘ll
need?to?paste?into?your?app?along?with?this?file?&?FTPclient.h

If?you?created?your?app?without?checking?the?“Use?Windows?Sockets“
checkbox?in?AppWizard?you‘ll?need?to?add?the?following?bit?of?code
to?you?app‘s?InitInstance()

if(!AfxSocketInit())
{
AfxMessageBox(“Could?not?initialize?Windows?Sockets!“);
return?FALSE;
}

To?use:

1/?Create?an?object?of?CFTPclient.

2/?Use?LogOnToServer()?to?connect?to?the?server.?Any?arguments
not?used?(e.g.?if?you‘re?not?using?a?firewall)?pass?an?empty
string?or?zero?for?numeric?args.?You?must?pass?a?server?port
number?use?the?FTP?default?of?21?if?you?don‘t?know?what?it?is.

3/?Use?MoveFile()?to?upload/download?a?file?1st?arg?is?local?file
path?2nd?arg?is?remote?file?path?3rd?arg?is?TRUE?for?a?PASV
connection?(required?by?some?firewalls)?FALSE?otherwise?4th?arg
is?TRUE?to?upload?FALSE?to?download?file.?MoveFile?only?works?in
synchronous?mode?(ie?the?function?will?not?return?‘till?the?transfer
is?finished).?File?transfers?are?always?of?type?BINARY.

4/?You?can?use?FTPcommand()?to?execute?FTP?commands?(eg
FTPcommand(“CWD?/home/mydir“)?to?change?directory?on?the?server)
note?that?this?function?will?return?FALSE?unless?the?server?response
is?a?200?series?code.?This?should?work?fine?for?most?FTP?commands?
otherwise?you?can?use?WriteStr()?and?ReadStr()?to?send?commands?&?
interpret?the?response?yourself.?Use?LogOffServer()?to?disconnect
when?done.

/////////////////////////////////////////////////////////////////////*/


#include?“stdafx.h“
#include?“FTPSOCKET.h“
#include?“FTPClass.h“


#ifdef?_DEBUG
#undef?THIS_FILE
static?char?THIS_FILE[]=__FILE__;
#define?new?DEBUG_NEW
#endif

//////////////////////////////////////////////////////////////////////
//?Construction/Destruction
/////////////////////////////////////////////////////////////

?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----

-----------?---------??----------?-----??----

???????????????123355????????????????????30


評論

共有 條評論