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

  • 大小: 64.72MB
    文件類型: .rar
    金幣: 2
    下載: 2 次
    發布日期: 2022-01-22
  • 語言: C/C++
  • 標簽: c++??libssh2??ftp/sftp??

資源簡介

Windows平臺下c++ 對ftp和sftp文件以及文件夾下載上傳整體的工程源代碼。 內涵文檔,測試用例 經過單元測試,集成測試 可靠,本人也是經過半個月的開發和封裝

資源截圖

代碼片段和文件信息

/*
??Copyright?(c)?2009?Dave?Gamble

??Permission?is?hereby?granted?free?of?charge?to?any?person?obtaining?a?copy
??of?this?software?and?associated?documentation?files?(the?“Software“)?to?deal
??in?the?Software?without?restriction?including?without?limitation?the?rights
??to?use?copy?modify?merge?publish?distribute?sublicense?and/or?sell
??copies?of?the?Software?and?to?permit?persons?to?whom?the?Software?is
??furnished?to?do?so?subject?to?the?following?conditions:

??The?above?copyright?notice?and?this?permission?notice?shall?be?included?in
??all?copies?or?substantial?portions?of?the?Software.

??THE?SOFTWARE?IS?PROVIDED?“AS?IS“?WITHOUT?WARRANTY?OF?ANY?KIND?EXPRESS?OR
??IMPLIED?INCLUDING?BUT?NOT?LIMITED?TO?THE?WARRANTIES?OF?MERCHANTABILITY
??FITNESS?FOR?A?PARTICULAR?PURPOSE?AND?NONINFRINGEMENT.?IN?NO?EVENT?SHALL?THE
??AUTHORS?OR?COPYRIGHT?HOLDERS?BE?LIABLE?FOR?ANY?CLAIM?DAMAGES?OR?OTHER
??LIABILITY?WHETHER?IN?AN?ACTION?OF?CONTRACT?TORT?OR?OTHERWISE?ARISING?FROM
??OUT?OF?OR?IN?CONNECTION?WITH?THE?SOFTWARE?OR?THE?USE?OR?OTHER?DEALINGS?IN
??THE?SOFTWARE.
*/

/*?cJSON?*/
/*?JSON?parser?in?C.?*/
#include?
#include?
#include?
#include?
#include?
#include?
#include?
#include?“cJSON.h“

static?const?char?*ep;

const?char?*cJSON_GetErrorPtr(void)?{return?ep;}

static?int?cJSON_strcasecmp(const?char?*s1const?char?*s2)
{
if?(!s1)?return?(s1==s2)?0:1;if?(!s2)?return?1;
for(;?tolower(*s1)?==?tolower(*s2);?++s1?++s2) if(*s1?==?0) return?0;
return?tolower(*(const?unsigned?char?*)s1)?-?tolower(*(const?unsigned?char?*)s2);
}

static?void?*(*cJSON_malloc)(size_t?sz)?=?malloc;
static?void?(*cJSON_free)(void?*ptr)?=?free;

static?char*?cJSON_strdup(const?char*?str)
{
??????size_t?len;
??????char*?copy;

??????len?=?strlen(str)?+?1;
??????if?(!(copy?=?(char*)cJSON_malloc(len)))?return?0;
??????memcpy(copystrlen);
??????return?copy;
}

void?cJSON_InitHooks(cJSON_Hooks*?hooks)
{
????if?(!hooks)?{?/*?Reset?hooks?*/
????????cJSON_malloc?=?malloc;
????????cJSON_free?=?free;
????????return;
????}

cJSON_malloc?=?(hooks->malloc_fn)?hooks->malloc_fn:malloc;
cJSON_free ?=?(hooks->free_fn)?hooks->free_fn:free;
}

/*?Internal?constructor.?*/
static?cJSON?*cJSON_New_Item(void)
{
cJSON*?node?=?(cJSON*)cJSON_malloc(sizeof(cJSON));
if?(node)?memset(node0sizeof(cJSON));
return?node;
}

/*?Delete?a?cJSON?structure.?*/
void?cJSON_Delete(cJSON?*c)
{
cJSON?*next;
while?(c)
{
next=c->next;
if?(!(c->type&cJSON_IsReference)?&&?c->child)?cJSON_Delete(c->child);
if?(!(c->type&cJSON_IsReference)?&&?c->valuestring)?cJSON_free(c->valuestring);
if?(!(c->type&cJSON_StringIsConst)?&&?c->string)?cJSON_free(c->string);
cJSON_free(c);
c=next;
}
}

/*?Parse?the?input?text?to?generate?a?number?and?populate?the?result?into?item.?*/
static?const?char?*parse_number(cJSON?*itemconst?char?*num)
{
double?n=0sign=1scale=0;int?subscale=0signsubscale=1;

if?(*num==‘-‘)?sign=-1num++; /*?Ha

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

?????文件?????????17??2018-05-02?14:17??ftp_sftp\.git\COMMIT_EDITMSG

?????文件????????296??2018-04-25?17:46??ftp_sftp\.git\config

?????文件?????????73??2018-04-25?17:46??ftp_sftp\.git\description

?????文件?????????23??2018-04-25?17:46??ftp_sftp\.git\HEAD

?????文件????????478??2018-04-25?17:46??ftp_sftp\.git\hooks\applypatch-msg.sample

?????文件????????896??2018-04-25?17:46??ftp_sftp\.git\hooks\commit-msg.sample

?????文件????????189??2018-04-25?17:46??ftp_sftp\.git\hooks\post-update.sample

?????文件????????424??2018-04-25?17:46??ftp_sftp\.git\hooks\pre-applypatch.sample

?????文件???????1642??2018-04-25?17:46??ftp_sftp\.git\hooks\pre-commit.sample

?????文件???????1348??2018-04-25?17:46??ftp_sftp\.git\hooks\pre-push.sample

?????文件???????4951??2018-04-25?17:46??ftp_sftp\.git\hooks\pre-rebase.sample

?????文件????????544??2018-04-25?17:46??ftp_sftp\.git\hooks\pre-receive.sample

?????文件???????1239??2018-04-25?17:46??ftp_sftp\.git\hooks\prepare-commit-msg.sample

?????文件???????3610??2018-04-25?17:46??ftp_sftp\.git\hooks\update.sample

?????文件???????3539??2018-05-02?14:17??ftp_sftp\.git\index

?????文件????????240??2018-04-25?17:46??ftp_sftp\.git\info\exclude

?????文件????????695??2018-05-02?14:17??ftp_sftp\.git\logs\HEAD

?????文件????????695??2018-05-02?14:17??ftp_sftp\.git\logs\refs\heads\master

?????文件????????182??2018-04-25?17:46??ftp_sftp\.git\logs\refs\remotes\origin\HEAD

?????文件????????453??2018-05-02?14:18??ftp_sftp\.git\logs\refs\remotes\origin\master

?????文件????????112??2018-05-02?12:11??ftp_sftp\.git\objects\02\51d04a8436ec76afcdcea517da2b034e89acb2

?????文件????????179??2018-05-02?14:17??ftp_sftp\.git\objects\0a\83d141329ca85281b7055ff894e647dbbf9360

?????文件????2101020??2018-05-02?14:17??ftp_sftp\.git\objects\0b\0cf97f955650e94eda32ee393e75859bf5680e

?????文件?????????53??2018-05-02?12:11??ftp_sftp\.git\objects\16\85d3e70168cf09b20ac73a5664d73f57381bc2

?????文件???????5157??2018-04-25?17:50??ftp_sftp\.git\objects\17\5bf6d99c2b91291aed8ddfe9609b9938b77e85

?????文件????????536??2018-05-02?14:17??ftp_sftp\.git\objects\1b\36eb69eba4959d91fa17374a10c6905df9f37a

?????文件????????443??2018-04-25?17:50??ftp_sftp\.git\objects\20\64df95098a5a664faa9c2f637507a536b894c3

?????文件????????441??2018-04-25?17:50??ftp_sftp\.git\objects\2d\7d3fdadb190a2f789a85172c9e2eb83a33cf28

?????文件????????216??2018-05-02?12:11??ftp_sftp\.git\objects\2d\f25c5a072937a54c6f6c1ce4cd0f09e4250a8d

?????文件????????873??2018-04-25?17:50??ftp_sftp\.git\objects\30\851259a0ea04aa6dc5b95fd30bdd4d943cc4bf

............此處省略183個文件信息

評論

共有 條評論