亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? ftplib.c

?? vxwork源代碼
?? C
?? 第 1 頁 / 共 4 頁
字號:
            FTPLDEBUG ("ftpDataConnInit: error - reply was %d(decimal) - not FTP_COMPLETE or FTP_PRELIM.\n",\                       FTPL_DEBUG_ERRORS,result,1,2,3,4,5);            close (dataSock);            return (ERROR);            }        else            {            return (dataSock);            }        }    /* second try - try to get port # correct by default */    close (dataSock);    dataSock = socket (AF_INET, SOCK_STREAM, 0);    if (dataSock < 0)        {        FTPLDEBUG ("ftpDataConnInit: error - 2nd try to get port number failed on socket(). errno:0x%08x\n",\                    FTPL_DEBUG_ERRORS,errno,1,2,3,4,5);        return (ERROR);        }    optval = 1;    if ((setsockopt (dataSock, SOL_SOCKET, SO_REUSEADDR,            (caddr_t) &optval, sizeof (optval)) < 0) ||            (bind (dataSock, (struct sockaddr *)&ctrlAddr, sizeof (ctrlAddr)) < 0))        {        FTPLDEBUG ("ftpDataConnInit: error -  bind failed on 2nd attempt  errno :0x%08x\n", \                    FTPL_DEBUG_ERRORS, errno,1,2,3,4,5);        close (dataSock);        return (ERROR);        }    if (listen (dataSock, 1) < 0)        {        FTPLDEBUG ("ftpDataConnInit: error -  listen failed on 2nd attempt  errno :0x%08x\n", \                    FTPL_DEBUG_ERRORS,errno,1,2,3,4,5);        close (dataSock);        return (ERROR);        }    return (dataSock);    }/********************************************************************************* ftpDataConnGet - get a completed FTP data connection** This routine completes a data connection initiated by a call to* ftpDataConnInit().  It waits for a connection on the specified socket from* the remote FTP server.  The specified socket should be the one returned by* ftpDataConnInit().  The connection is established on a new socket, whose* file descriptor is returned as the result of this function.  The original * socket, specified in the argument to this routine, is closed.** Usually this routine is called after ftpDataConnInit() and ftpCommand() to* initiate a data transfer from/to the remote FTP server.** RETURNS:* The file descriptor of the new data socket, or ERROR if the connection* failed.** SEE ALSO: ftpDataConnInit(), ftpCommand()*/int ftpDataConnGet    (    int dataSock        /* fd of data socket on which to await connection */    )    {    int newDataSock;    SOCKADDR_IN from;    int fromlen = sizeof (from);    newDataSock = accept (dataSock, (struct sockaddr *) &from, &fromlen);    close (dataSock);    return (newDataSock);    }/********************************************************************************* ftpLs - list directory contents via FTP** This routine lists the contents of a directory.  The content list* is obtained via an NLST FTP transaction.** The local device name must be the same as the remote host name* with a colon ":" as a suffix.  (For example "wrs:" is the device* name for the "wrs" host.)** RETURNS : OK, or ERROR if could not open directory.*/STATUS ftpLs    (    char * dirName /* name of directory to list */    )    {    DEV_HDR * pDevHdr;    char    fullFileName [MAX_FILENAME_LENGTH];    char    hostName [MAXHOSTNAMELEN];    int     hostLength;    char    usr [MAX_IDENTITY_LEN];    char    passwd [MAX_IDENTITY_LEN];    int     dataSock;    int     cntrlSock;    char    buffer [BUFSIZ];    int     nChars;    /* Get device header and complete filename */    ioFullFileNameGet (dirName, &pDevHdr, fullFileName);    /* Get the host name, and remove the trailing ":" */    strcpy (hostName, pDevHdr->name);    hostLength = strlen (hostName);    hostName [hostLength - 1] = EOS;    /* Get user ID information */    remCurIdGet (usr, passwd);    if (ftpXfer (hostName, usr, passwd, "", "NLST", fullFileName, "",        &cntrlSock, &dataSock) != OK)        {            FTPLDEBUG ("Can't open directory \"%s\"\n",                FTPL_DEBUG_ERRORS,dirName,1,2,3,4,5);            return (ERROR);        }    /* Write out the listing */    while ((nChars = read (dataSock, (char *) buffer, BUFSIZ)) > 0)        write (STD_OUT, (char *) buffer, nChars);        /* Close the sockets opened by ftpXfer */    close (cntrlSock);    close (dataSock);    return (OK);    }/********************************************************************************* ftpLibDebugOptionSet - set the debug level of the ftp library routines** This routine enables the debugging of ftp transactions using the ftp library.** \ts* Debugging Level     | Meaning* ----------------------------------------------------------------* FTPL_DEBUG_OFF      | No debugging messages. * FTPL_DEBUG_INCOMING | Display all incoming responses. * FTPL_DEBUG_OUTGOING | Display all outgoing commands. * FTPL_DEBUG_ERRORS   | Display warnings and errors* \te* EXAMPLE* .CS* ftpLibDebugOptionsSet (FTPL_DEBUG_ERRORS);    /@ Display any runtime errors @/* ftpLibDebugOptionsSet (FTPL_DEBUG_OUTGOING);  /@ Display outgoing commands @/* ftpLibDebugOptionsSet (FTPL_DEBUG_INCOMING);  /@ Display incoming replies @/* ftpLibDebugOptionsSet (FTPL_DEBUG_INCOMING |  /@ Display both commands and @/ *                        FTPL_DEBUG_OUTGOING);  /@         replies @/* .CE**/void ftpLibDebugOptionsSet    (    UINT32 debugLevel     )    {        ftplDebug = debugLevel;    }/********************************************************************************* ftpTransientConfigSet - set parameters for host FTP_TRANSIENT responses ** This routine adjusts the delay between retries in response to receiving * FTP_PRELIM and the maximum retry count permitted before failing.** RETURNS : OK*/STATUS ftpTransientConfigSet    (    UINT32 maxRetryCount, /* The maximum number of attempts to retry */    UINT32 retryInterval  /* time (in system clock ticks) between retries */    )    {    /* Set the values */    ftplTransientMaxRetryCount = maxRetryCount;    ftplTransientRetryInterval = retryInterval;    return (OK);    }/********************************************************************************* ftpTransientConfigGet - get parameters for host FTP_TRANSIENT responses ** This routine retrieves the delay between retries in response to receiving * FTP_TRANSIENT and the maximum retry count permitted before failing.** RETURNS : OK** SEE ALSO : ftpTransientConfigSet, tickLib*/STATUS ftpTransientConfigGet    (    UINT32 *maxRetryCount, /* The maximum number of attempts to retry */    UINT32 *retryInterval  /* time (in system clock ticks) between retries */    )    {    /* return the values */    if (maxRetryCount != NULL)        *maxRetryCount = ftplTransientMaxRetryCount;    if (retryInterval != NULL)       *retryInterval = ftplTransientRetryInterval;    return (OK);    }/********************************************************************************* ftpTransientFatal - applette to terminate FTP transient host responses** ftpXfer will normally retry a command if the host responds with a 4xx* reply.   If this applette is installed,  it can immediately terminate* the retry sequence.*** RETURNS ** TRUE, terminate retry attempts; FALSE, continue retry attempts.** INTERNAL * * This is the default routine if the customer does not install* an applette.** SEE ALSO : ftpTransientFatalInstall(), ftpTransientConfigSet()**/LOCAL BOOL ftpTransientFatal     (    UINT32 reply /* Three digit code defined in RFC #959 */    )    {    switch (reply)        {        case (421): /* Service not available */        case (450): /* File unavailable */        case (451): /* error in processing */        case (452): /* insufficient storage */            {             /* yes, these are actually non-recoverable replies */            return (TRUE);             break;            }            /* attempt to retry the last command */        default:        return (FALSE);         }    }/********************************************************************************* ftpTransientFatalInstall - set applette to stop FTP transient host responses** The routine installs a function which will determine if a transient response * should be fatal.* Some ftp servers incorrectly use 'transient' responses instead of * 'error' to describe conditions such as 'disk full'.** RETURNS * * OK if the installation is successful, or ERROR if the installation fails.** SEE ALSO ** ftpTransientConfigSet(), ftpTransientFatal() in * target/config/comps/src/net/usrFtp.c**/STATUS ftpTransientFatalInstall     (    FUNCPTR pApplette  /* function that returns TRUE or FALSE */    )    {    /* At least prevent this from being a disaster */    if (pApplette == NULL)        return (ERROR);     _func_ftpTransientFatal = pApplette;    return (OK); /* attempt to retry the last command */    }/********************************************************************************* ftpPasvReplyParse - Parse the reply of a PASV command** ftpPasvReplyParse expects to receive a string generated as a response from* a PASV command.   The string will begin with '227' and end with a series* of six integer values encapsulated in parentheses and separated by commas.* EXAMPLE STRING:** 227 Entering passive mode (147,11,1,23,1027,1028)*              * RETURNS : OK - Sucessfull parse*           ERROR - Error in parse** SEE ALSO : ftpCommandEnhanced(), ftpReplyGetEnhanced()** NOMANUAL*/LOCAL STATUS ftpPasvReplyParse     (    char *responseString, /* NULL terminated string */    UINT32 *argument1,    /* First argument */    UINT32 *argument2,    /* Second argument */    UINT32 *argument3,    /* Third argument */    UINT32 *argument4,    /* Fourth argument */    UINT32 *argument5,    /* Fifth argument */    UINT32 *argument6     /* Six argument */    )    {    char *index;    UINT32 tmpArg1;    UINT32 tmpArg2;    UINT32 tmpArg3;    UINT32 tmpArg4;    UINT32 tmpArg5;    UINT32 tmpArg6;    if (responseString == NULL)        return (ERROR);    /* Sanity check: Check for '227' at the beginning of the reply */    if (strstr (responseString, "227") == NULL)        {        FTPLDEBUG ("ftpPasvReplyParse: error - '227' not part of PASV response\n", \            FTPL_DEBUG_ERRORS, 0,1,2,3,4,5);        return (ERROR);        }     index = strstr(responseString, "(");    if (index == NULL)        {        FTPLDEBUG ("ftpPasvReplyParse: error - '(' not part of PASV response\n", \            FTPL_DEBUG_ERRORS, 0,1,2,3,4,5);        return (ERROR);        }    /* scan in the arguments */    sscanf (index+1, "%d,%d,%d,%d,%d,%d",             &tmpArg1,            &tmpArg2,            &tmpArg3,            &tmpArg4,            &tmpArg5,            &tmpArg6);    /* Store arguments as neccesary */    if (argument1)        *argument1 = tmpArg1;    if (argument2)        *argument2 = tmpArg2;    if (argument3)        *argument3 = tmpArg3;    if (argument4)        *argument4 = tmpArg4;    if (argument5)        *argument5 = tmpArg5;    if (argument6)        *argument6 = tmpArg6;    return OK;    }

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
国产精品久久久久久妇女6080| 亚洲综合在线第一页| 亚洲欧美另类在线| 久久电影网站中文字幕| 色综合久久久久网| 久久这里只有精品首页| 亚洲自拍偷拍综合| 成人sese在线| 在线综合+亚洲+欧美中文字幕| 国产精品福利一区二区| 狠狠色丁香婷综合久久| 欧美日韩在线免费视频| 中文字幕免费不卡| 国产一区二区三区蝌蚪| 337p亚洲精品色噜噜| 亚洲精品第一国产综合野| 国产成人在线免费观看| 日韩精品一区二区三区在线播放 | 日韩三级在线观看| 亚洲综合色成人| 91免费视频大全| 中文字幕精品三区| 国产乱人伦精品一区二区在线观看 | 菠萝蜜视频在线观看一区| 26uuu久久综合| 免费观看在线色综合| 欧美军同video69gay| 亚洲综合在线五月| 色欧美乱欧美15图片| 亚洲欧洲另类国产综合| 成人黄色网址在线观看| 中文字幕中文字幕一区二区| 国产麻豆91精品| 久久久精品中文字幕麻豆发布| 久久国产夜色精品鲁鲁99| 宅男噜噜噜66一区二区66| 手机精品视频在线观看| 911国产精品| 免费av成人在线| 日韩女同互慰一区二区| 精品一区免费av| 国产午夜精品美女毛片视频| 国产91精品入口| 亚洲色图视频网站| 欧美日本乱大交xxxxx| 香蕉加勒比综合久久| 欧美一区二区免费| 国产一区二区在线看| 国产日韩影视精品| 成人美女视频在线观看| 综合久久综合久久| 欧美日本高清视频在线观看| 日本午夜精品一区二区三区电影| 日韩午夜av电影| 国产精品一区一区| 中文字幕一区不卡| 欧美猛男超大videosgay| 日韩影院精彩在线| 中文字幕精品一区二区三区精品| 91精品福利视频| 蜜乳av一区二区三区| 久久久久97国产精华液好用吗| 不卡av在线网| 婷婷成人综合网| 久久天天做天天爱综合色| 成人美女视频在线看| 视频一区二区中文字幕| 久久女同性恋中文字幕| 97久久精品人人爽人人爽蜜臀| 亚洲国产精品精华液网站| 欧美岛国在线观看| 色综合天天综合狠狠| 老司机午夜精品| 亚洲色图制服诱惑| 精品久久国产字幕高潮| 色av成人天堂桃色av| 老司机一区二区| 亚洲精品va在线观看| 久久亚洲一区二区三区四区| 91社区在线播放| 激情综合五月天| 亚洲精品国产视频| 久久蜜桃av一区二区天堂 | 有码一区二区三区| 久久婷婷国产综合精品青草| 欧美自拍偷拍一区| 成人毛片老司机大片| 极品尤物av久久免费看| 午夜激情综合网| 亚洲欧美日韩一区二区 | 国产成人午夜精品5599| 亚洲成av人**亚洲成av**| 中文字幕 久热精品 视频在线 | 精品免费国产一区二区三区四区| 97国产一区二区| 国产成人免费视频精品含羞草妖精 | 国产日韩精品一区二区三区| 久久青草欧美一区二区三区| 91精彩视频在线| av色综合久久天堂av综合| 国内成+人亚洲+欧美+综合在线 | 国产精品乱码一区二区三区软件 | 欧美日韩黄色影视| 99国内精品久久| 成人一区在线观看| 国产一区二区视频在线| 麻豆国产精品视频| 日韩av电影免费观看高清完整版在线观看 | 不卡在线观看av| 成人精品小蝌蚪| 东方欧美亚洲色图在线| 国产馆精品极品| 国产大陆精品国产| 国产成人在线观看| 成人的网站免费观看| 9久草视频在线视频精品| 国产成人精品免费看| 国产成人精品免费在线| 成人久久18免费网站麻豆 | 亚洲综合在线观看视频| 亚洲综合色噜噜狠狠| 亚洲国产精品天堂| 亚洲二区视频在线| 日本特黄久久久高潮| 免费看黄色91| 国产乱理伦片在线观看夜一区| 国产风韵犹存在线视精品| 丁香网亚洲国际| 91在线精品秘密一区二区| www.色综合.com| 欧美在线一二三四区| 欧美日韩国产色站一区二区三区| 欧美日韩大陆在线| wwwwxxxxx欧美| 综合精品久久久| 日本亚洲电影天堂| 国产福利一区二区| 色综合一区二区| 欧美肥胖老妇做爰| 久久精品一区二区三区不卡 | 日韩成人一级大片| 国产伦理精品不卡| 在线精品视频一区二区| 日韩手机在线导航| 国产精品丝袜久久久久久app| 亚洲欧美日本在线| 美女一区二区视频| 成人开心网精品视频| 欧美日韩国产片| 中文av一区特黄| 天堂av在线一区| 国产不卡在线视频| 欧美色窝79yyyycom| 精品国产百合女同互慰| 亚洲免费成人av| 精品一区二区三区在线播放| 91视频在线观看免费| 精品国产91洋老外米糕| 亚洲美女电影在线| 国产一区二区三区四区五区入口| 色视频欧美一区二区三区| 久久亚洲精精品中文字幕早川悠里| 综合激情成人伊人| 国产一区二区不卡| 欧美卡1卡2卡| 亚洲综合久久久| 国产aⅴ综合色| 欧美一区二区在线免费观看| 亚洲婷婷国产精品电影人久久| 九九视频精品免费| 欧美日韩三级在线| 亚洲欧美日本韩国| 懂色中文一区二区在线播放| 日韩三级免费观看| 婷婷丁香激情综合| 欧美性猛交一区二区三区精品| 国产三级精品视频| 国产精品88888| 日韩精品中文字幕在线不卡尤物| 亚洲电影欧美电影有声小说| av不卡一区二区三区| 精品久久久久99| 精品在线免费观看| 日韩视频一区二区在线观看| 亚洲一区免费观看| 91国产免费观看| 亚洲男人电影天堂| www.久久久久久久久| 欧美国产在线观看| 国产精品一区免费视频| 精品国产sm最大网站免费看| 日韩福利电影在线观看| 欧美日本精品一区二区三区| 亚洲亚洲精品在线观看| 91黄色在线观看| 亚洲一区二区综合| 精品视频一区二区三区免费| 亚洲午夜激情网页| 欧美私人免费视频| 午夜精品国产更新|