• 大小: 136KB
    文件类型: .rar
    金币: 1
    下载: 0 次
    发布日期: 2021-06-06
  • 语言: C#
  • 标签: c#  网络  调试  

资源简介

C#版本的网络调试助手源码,带串口调试功能和网络调试功能

资源截图

代码片段和文件信息

/*
 *
 * NMEA library
 * URL: http://nmea.sourceforge.net
 * Author: Tim (xtimor@gmail.com)
 * Licence: http://www.gnu.org/licenses/lgpl.html
 * $Id: context.c 17 2008-03-11 11:56:11Z xtimor $
 *
 */

#include “nmea/context.h“

#include 
#include 
#include 

nmeaPROPERTY * nmea_property()
{
    static nmeaPROPERTY prop = {
        0 0 NMEA_DEF_PARSEBUFF
        };

    return ∝
}

void nmea_trace(const char *str ...)
{
    int size;
    va_list arg_list;
    char buff[NMEA_DEF_PARSEBUFF];
    nmeaTraceFunc func = nmea_property()->trace_func;

    if(func)
    {
        va_start(arg_list str);
        size = NMEA_POSIX(vsnprintf)(&buff[0] NMEA_DEF_PARSEBUFF - 1 str arg_list);
        va_end(arg_list);

        if(size > 0)
            (*func)(&buff[0] size);
    }
}

void nmea_trace_buff(const char *buff int buff_size)
{
    nmeaTraceFunc func = nmea_property()->trace_func;
    if(func && buff_size)
        (*func)(buff buff_size);
}

void nmea_error(const char *str ...)
{
    int size;
    va_list arg_list;
    char buff[NMEA_DEF_PARSEBUFF];
    nmeaErrorFunc func = nmea_property()->error_func;

    if(func)
    {
        va_start(arg_list str);
        size = NMEA_POSIX(vsnprintf)(&buff[0] NMEA_DEF_PARSEBUFF - 1 str arg_list);
        va_end(arg_list);

        if(size > 0)
            (*func)(&buff[0] size);
    }
}

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

    .CA....       184  2016-04-25 11:13  wildfire_MultiFuctionalSerial_assistant\App.config

    .CA....       350  2016-04-25 11:13  wildfire_MultiFuctionalSerial_assistant\App.xaml

    .CA....       366  2016-04-25 11:13  wildfire_MultiFuctionalSerial_assistant\App.xaml.cs

    .CA....      9227  2016-04-25 11:13  wildfire_MultiFuctionalSerial_assistant\DynamicBufferManager.cs

    .CA....      1809  2016-04-25 11:13  wildfire_MultiFuctionalSerial_assistant\Fourm\Fourm.xaml

    .CA....      1790  2016-04-25 11:13  wildfire_MultiFuctionalSerial_assistant\Fourm\Fourm.xaml.cs

    .CA....      1336  2016-04-25 11:13  wildfire_MultiFuctionalSerial_assistant\Fourm.xaml

    .CA....      3932  2016-04-25 11:13  wildfire_MultiFuctionalSerial_assistant\GPS\baiDuMap.html

    .CA....     18940  2016-04-25 11:13  wildfire_MultiFuctionalSerial_assistant\GPS\GPSMap.xaml

    .CA....     22150  2016-04-25 11:13  wildfire_MultiFuctionalSerial_assistant\GPS\GPSMap.xaml.cs

    .CA....     22224  2016-04-25 11:13  wildfire_MultiFuctionalSerial_assistant\GSMFunction\GSMAssistant.xaml

    .CA....     32827  2016-04-25 11:13  wildfire_MultiFuctionalSerial_assistant\GSMFunction\GSMAssistant.xaml.cs

    .CA....      1465  2016-04-25 11:13  wildfire_MultiFuctionalSerial_assistant\MainWindow.xaml

    .CA....      1615  2016-04-25 11:13  wildfire_MultiFuctionalSerial_assistant\MainWindow.xaml.cs

    .CA....     14213  2016-04-25 11:13  wildfire_MultiFuctionalSerial_assistant\network\Network.xaml

    .CA....     51720  2016-04-25 11:13  wildfire_MultiFuctionalSerial_assistant\network\Network.xaml.cs

    .CA....      2241  2016-04-25 11:13  wildfire_MultiFuctionalSerial_assistant\Properties\AssemblyInfo.cs

    .CA....      2918  2016-04-25 11:13  wildfire_MultiFuctionalSerial_assistant\Properties\Resources.Designer.cs

    .CA....      5612  2016-04-25 11:13  wildfire_MultiFuctionalSerial_assistant\Properties\Resources.resx

    .CA....      1139  2016-04-25 11:13  wildfire_MultiFuctionalSerial_assistant\Properties\Settings.Designer.cs

    .CA....       201  2016-04-25 11:13  wildfire_MultiFuctionalSerial_assistant\Properties\Settings.settings

    .CA....     14016  2016-04-25 11:13  wildfire_MultiFuctionalSerial_assistant\SerialBasic\SerialBasic.xaml

    .CA....     17057  2016-04-25 11:13  wildfire_MultiFuctionalSerial_assistant\SerialBasic\SerialBasic.xaml.cs

    .CA....     69041  2016-04-25 11:13  wildfire_MultiFuctionalSerial_assistant\wildfireLogo.ico

    .CA....      7823  2016-04-25 11:13  wildfire_MultiFuctionalSerial_assistant\wildfire_MultiFuctionalSerial_assistant.csproj

    .CA....      2853  2016-04-25 11:13  wildfire_MultiFuctionalSerial_assistant.sln

    .CA....      1074  2016-04-25 11:13  nmeaLib\include\nmea\config.h

    .CA....       891  2016-04-25 11:13  nmeaLib\include\nmea\context.h

    .CA....      1311  2016-04-25 11:13  nmeaLib\include\nmea\generate.h

    .CA....      1903  2016-04-25 11:13  nmeaLib\include\nmea\generator.h

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

评论

共有 条评论