服务端代码Server


接收客户端传过来的数据,并且可以进行管理数据,简单的增删改查
资源截图
代码片段和文件信息
/*
  Copyright (c) 2009-2017 Dave Gamble and cJSON contributors

  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. */

/* disable warnings about old C89 functions in MSVC */
#if !defined(_CRT_SECURE_NO_DEPRECATE) && defined(_MSC_VER)
#define _CRT_SECURE_NO_DEPRECATE
#endif

#ifdef __GNUC__
#pragma GCC visibility push(default)
#endif
#if defined(_MSC_VER)
#pragma warning (push)
/* disable warning about single line comments in system headers */
#pragma warning (disable : 4001)
#endif
#include “stdafx.h“
#include 
#include 
#include 
#include 
#include 
#include 
#include 

#pragma warning(disable:4996)
#ifdef ENABLE_LOCALES
#include 
#endif

#if defined(_MSC_VER)
#pragma warning (pop)
#endif
#ifdef __GNUC__
#pragma GCC visibility pop
#endif

#include “cJSON.h“

/* define our own boolean type */
#define true ((cJSON_bool)1)
#define false ((cJSON_bool)0)

typedef struct {
    const unsigned char *json;
    size_t position;
} error;
static error global_error = { NULL 0 };

CJSON_PUBLIC(const char *) cJSON_GetErrorPtr(void)
{
    return (const char*) (global_error.json + global_error.position);
}

/* This is a safeguard to prevent copy-pasters from using incompatible C and header files */
#if (CJSON_VERSION_MAJOR != 1) || (CJSON_VERSION_MINOR != 6) || (CJSON_VERSION_PATCH != 0)
    #error cJSON.h and cJSON.c have different versions. Make sure that both have the same.
#endif

CJSON_PUBLIC(const char*) cJSON_Version(void)
{
    static char version[15];
    sprintf(version “%i.%i.%i“ CJSON_VERSION_MAJOR CJSON_VERSION_MINOR CJSON_VERSION_PATCH);

    return version;
}

/* Case insensitive string comparison doesn‘t consider two NULL pointers equal though */
static int case_insensitive_strcmp(const unsigned char *string1 const unsigned char *string2)
{
    if ((string1 == NULL) || (string2 == NULL))
    {
        return 1;
    }

    if (string1 == string2)

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----

     文件      11008  2012-03-06 21:27  Serverincludeconfig-win.h

     文件       4472  2012-03-06 21:27  Serverincludedecimal.h

     文件       3854  2012-03-06 21:27  Serverincludeerrmsg.h

     文件        753  2017-12-22 13:16  ServerincludeJmDll.h

     文件       7027  2012-03-06 21:27  Serverincludekeycache.h

     文件       2819  2012-03-06 21:27  Serverincludelibmysql.def

     文件      29706  2012-03-06 21:27  Serverincludemysqlplugin.h

     文件      33771  2012-03-06 21:27  Serverincludemysql.h

     文件      24090  2012-03-06 21:27  Serverincludemysqld_ername.h

     文件      24147  2012-03-06 21:27  Serverincludemysqld_error.h

     文件      20543  2012-03-06 21:27  Serverincludemysql_com.h

     文件       1140  2012-03-06 21:27  Serverincludemysql_embed.h

     文件       2097  2012-03-06 21:27  Serverincludemysql_time.h

     文件        850  2012-03-06 21:27  Serverincludemysql_version.h

     文件       1804  2012-03-06 21:27  Serverincludemy_alloc.h

     文件       1941  2012-03-06 21:27  Serverincludemy_attribute.h

     文件       4061  2012-03-06 21:27  Serverincludemy_compiler.h

     文件       6963  2012-03-06 21:27  Serverincludemy_dbug.h

     文件       3460  2012-03-06 21:27  Serverincludemy_dir.h

     文件       3755  2012-03-06 21:27  Serverincludemy_getopt.h

     文件      52802  2012-03-06 21:27  Serverincludemy_global.h

     文件       1488  2012-03-06 21:27  Serverincludemy_list.h

     文件       3656  2012-03-06 21:27  Serverincludemy_net.h

     文件       1849  2012-03-06 21:27  Serverincludemy_no_pthread.h

     文件      27144  2012-03-06 21:27  Serverincludemy_pthread.h

     文件      41510  2012-03-06 21:27  Serverincludemy_sys.h

     文件       2677  2012-03-06 21:27  Serverincludemy_xml.h

     文件      23030  2012-03-06 21:27  Serverincludem_ctype.h

     文件       8052  2012-03-06 21:27  Serverincludem_string.h

     文件       1957  2012-03-06 21:27  Serverincludesql_common.h

............此处省略385个文件信息

版权声明:本文内容由互联网用户自发贡献,该文观点仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容, 请发送邮件举报,一经查实,本站将立刻删除。

发表评论

评论列表(条)