⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 cgiparsem.h

📁 本软件是TI公司免费提供的网络开发包 现在好象很难找到,有黑心的公司把它改一改,就卖价5000元,对网络开发和网络驱动开发有参考价值
💻 H
字号:
/*
 *  Copyright 2006 by Texas Instruments Incorporated.
 *  All rights reserved. Property of Texas Instruments Incorporated.
 *  Restricted rights to use, duplicate or disclose this code are
 *  granted through contract.
 *
 *  @(#) TCP/IP_Network_Developers_Kit 1.91.00.08 08-22-2006 (ndk-a08)
 */
//--------------------------------------------------------------------------
// IP Stack CGI Demonstration Program
//--------------------------------------------------------------------------
// cgiparsem.h
//
// Multipart CGI Parsing for "multipart/form-data" forms
//
// Author: Michael A. Denio
//
// Copyright 2003 by Texas Instruments Inc.
//-------------------------------------------------------------------------

#ifndef _cgiparsem_h
#define _cgiparsem_h

typedef struct {
    char *Name;         // NULL terminated "name"
    char *Filename;     // NULL terminated "filename" or NULL if not a file
    char *Type;         // NULL terminated "Content-Type" or NULL if no type
    char *Data;         // Pointer to item data (NULL terminated on strings)
    int  DataSize;      // Length of data (also valid on strings)
} CGIPARSEREC;

//
// cgiParseMultiVars()
//
// This function is used to parse CGI data sent in the "multipart/form-data"
// format. The caller must pass in the entire CGI payload as a single buffer.
// The buffer will altered to add NULL termination to all names, types, and
// data fields.
//
// Returns the number of validated records, or -1 on parsing error.
//
int cgiParseMultiVars( char *buffer, int buflen, CGIPARSEREC *recs, int maxrecs );


#endif /* _cgiparsem_h */

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -