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

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

?? ftplib.c

?? vxworks的完整的源代碼
?? 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一区二区三区免费野_久草精品视频
欧美视频一区二| 91福利社在线观看| 色视频成人在线观看免| 日韩视频免费观看高清完整版 | 欧美一级精品大片| 国产精品传媒在线| 看片的网站亚洲| 欧美偷拍一区二区| 国产精品毛片久久久久久久 | 亚洲线精品一区二区三区八戒| 国产一区视频网站| 日韩欧美成人激情| 亚洲成人先锋电影| 在线欧美小视频| 亚洲人成亚洲人成在线观看图片| 国产成人鲁色资源国产91色综| 正在播放一区二区| 亚洲mv在线观看| 欧美无砖专区一中文字| 悠悠色在线精品| 91浏览器打开| 成人免费在线视频| 99精品视频一区| 1000精品久久久久久久久| 国产69精品久久久久毛片| 国产亚洲一区二区三区四区| 麻豆国产一区二区| 欧美电影免费观看高清完整版在线| 无码av免费一区二区三区试看| 欧美午夜精品免费| 亚洲成av人片观看| 欧美一级二级三级蜜桃| 久久精品国产99久久6| 精品美女在线播放| 国产精品中文字幕一区二区三区| 精品国产乱码久久久久久免费| 九色|91porny| 国产亚洲一区二区三区四区| 国产精品一区二区在线播放| 久久久精品国产免费观看同学| 国产成人免费视频精品含羞草妖精| 国产色婷婷亚洲99精品小说| 成人h动漫精品| 亚洲欧美日韩一区| 欧美日本一区二区| 久久99国产精品成人| 国产丝袜欧美中文另类| 色综合久久99| 亚洲国产精品精华液网站| 91麻豆精品国产91久久久久久久久 | 色素色在线综合| 日韩高清一区在线| 久久夜色精品一区| 99精品视频一区| 丝袜脚交一区二区| 国产三级精品在线| 在线精品亚洲一区二区不卡| 婷婷夜色潮精品综合在线| 精品久久人人做人人爰| 成人av电影免费观看| 亚洲一区二区三区自拍| 日韩一区二区电影在线| 成人激情午夜影院| 石原莉奈一区二区三区在线观看| 精品粉嫩aⅴ一区二区三区四区| 岛国一区二区在线观看| 亚洲成人av在线电影| 久久一留热品黄| 欧美日韩精品一区二区三区蜜桃| 国产精品亚洲一区二区三区妖精| 亚洲欧美另类久久久精品2019| 欧美一级视频精品观看| 不卡av免费在线观看| 青青草精品视频| 亚洲色图在线播放| 欧美va亚洲va| 91成人在线精品| 国产成人久久精品77777最新版本 国产成人鲁色资源国产91色综 | 欧美久久久久久久久中文字幕| 国产激情精品久久久第一区二区 | 欧美日本韩国一区| 成人精品免费看| 免费在线看一区| 亚洲精品成人精品456| 久久久国产综合精品女国产盗摄| 欧美美女黄视频| 97久久超碰国产精品电影| 久99久精品视频免费观看| 亚洲国产精品自拍| 国产精品成人免费 | 欧美一级生活片| 91福利在线导航| 99国产麻豆精品| 国产一区二区视频在线播放| 日韩中文字幕91| 一片黄亚洲嫩模| 中文字幕日韩欧美一区二区三区| 久久久久久久久岛国免费| 91精品免费观看| 欧美三区在线观看| 精品视频999| 色综合天天综合网天天狠天天| 粉嫩蜜臀av国产精品网站| 精品中文字幕一区二区小辣椒| 香蕉久久夜色精品国产使用方法| 亚洲另类色综合网站| 亚洲人精品一区| 成人免费小视频| 中文字幕亚洲一区二区va在线| 国产精品无圣光一区二区| 国产午夜精品一区二区三区嫩草 | 成人性生交大合| 国产精品2024| 国产jizzjizz一区二区| 国产经典欧美精品| 国产91精品在线观看| 国产成人高清视频| 成人一区二区视频| 91社区在线播放| 日本二三区不卡| 欧美日本一区二区在线观看| 欧美一区二区三区不卡| 91精品国产高清一区二区三区蜜臀| 777亚洲妇女| 日韩欧美成人一区| 中文在线一区二区 | 91猫先生在线| 欧美日韩一区小说| 日韩免费高清视频| 国产调教视频一区| 亚洲色图欧洲色图| 视频一区二区欧美| 国产一区二区美女| 99久免费精品视频在线观看| 在线观看国产精品网站| 欧美一区二区网站| 欧美激情中文字幕一区二区| 亚洲色图视频网站| 美女被吸乳得到大胸91| 国产suv精品一区二区三区| 色妞www精品视频| 欧美一区二区大片| 国产偷v国产偷v亚洲高清 | 一区免费观看视频| 日韩精品五月天| 丁香激情综合五月| 欧美精品色综合| 国产精品视频观看| 视频一区欧美精品| caoporm超碰国产精品| 欧美亚洲禁片免费| 久久久99久久| 亚洲大尺度视频在线观看| 国产乱妇无码大片在线观看| 欧美亚洲高清一区二区三区不卡| 日韩美一区二区三区| 亚洲最新在线观看| 国产精品一区二区在线播放| 欧美日韩黄色一区二区| 日本一区二区三区久久久久久久久不| 亚洲va国产天堂va久久en| 丰满亚洲少妇av| 日韩一区二区免费在线电影| 中文字幕一区二区三区乱码在线| 日本欧美一区二区| 在线免费一区三区| 中文字幕巨乱亚洲| 日本人妖一区二区| 91福利社在线观看| 国产精品每日更新| 国产精品一二三四五| 欧美一区永久视频免费观看| 亚洲美女屁股眼交| 国产成+人+日韩+欧美+亚洲| 日韩欧美不卡在线观看视频| 亚洲成人tv网| 欧美日韩一区二区三区免费看| 国产精品色婷婷久久58| 精品一区二区三区免费视频| 欧美久久久久免费| 午夜影院久久久| 日本韩国一区二区| 综合欧美一区二区三区| 成人午夜免费电影| 久久精品免视看| 国产精品影视在线| 久久精品视频网| 精品一区二区三区在线播放视频 | 国产一区二区三区av电影| 欧美精品1区2区3区| 午夜精品一区二区三区电影天堂| 色婷婷一区二区| 亚洲三级在线免费观看| 99国产精品久久久| 亚洲欧洲国产日本综合| bt欧美亚洲午夜电影天堂| 亚洲人吸女人奶水| 91福利视频网站| 亚洲第一成人在线| 4438x亚洲最大成人网|