cgiparsem.h
来自「本软件是TI公司免费提供的网络开发包 现在好象很难找到,有黑心的公司把它改一改,」· C头文件 代码 · 共 46 行
H
46 行
/*
* 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 + =
减小字号Ctrl + -
显示快捷键?