资源简介
封装好的http client类,使用方便。

代码片段和文件信息
/*!
* \file RyeolException.cpp
* \brief Implementations of Ryeol‘s exception classes.
* \author Jo Hyeong-ryeol
* \since 2004.04.12
* \version $LastChangedRevision: 89 $
* $LastChangedDate: 2006-01-30 11:20:19 +0900 (월 30 1 2006) $
*
* This file contains implementations of exception classes.
* \n\n\n
* Copyright © 2006 by Jo Hyeong-ryeol\n
* Permission to copy use modify sell and distribute this software is
* granted provided this copyright notice appears in all copies.
* This software is provided “as is“ without express or implied warranty
* and with no claim as to its suitability for any purpose.
*/
#include “stdafx.h“
#include “RyeolException.h“
#pragma warning (disable: 4290) // avoids ‘C++ Exception Specification ignored‘ message
#pragma warning (disable: 4996) // avoids ‘This function or variable may be unsafe‘ message
/*!
* \brief The namespace of the Ryeol‘s library
*
* This is the namespace for source codes written by Jo Hyeong-ryeol.
*/
namespace Ryeol {
/*!
* This is a default constructor with no argument.
*/
errmsg_exceptionA::errmsg_exceptionA (void)
throw ()
{
m_szErrMsg = NULL ;
}
/*!
* This is a constructor with an initial error message.
* If memory allocation failed the error message will not be copied
* and Internal error message will point to NULL.
*
* \param szErrMsg [in] An initial error message.
*/
errmsg_exceptionA::errmsg_exceptionA (LPCSTR szErrMsg)
throw ()
{
m_szErrMsg = NULL ;
if ( szErrMsg == NULL )
return ;
seterrmsg (szErrMsg) ;
}
/*!
* This is a copy constructor.
* If memory allocation failed the error message will not be copied
* and Internal error message will point to NULL.
*
* \param ee [in] An errmsg_exceptionA object.
*/
errmsg_exceptionA::errmsg_exceptionA (const errmsg_exceptionA & ee)
throw ()
{
m_szErrMsg = NULL ;
operator=(ee) ;
}
/*!
* This is a default destructor.
*/
errmsg_exceptionA::~errmsg_exceptionA (void)
throw ()
{
::free (m_szErrMsg) ;
}
/*!
* This method returns an error message. It guarantees that it does
* not return NULL (Returns “NULL“ instead of NULL pointer).
* This method equals to the errmsg method in Ansi version.
*
* \return A message describing the error.
* \sa errmsg
*/
LPCSTR errmsg_exceptionA::what (void) const
throw ()
{
return errmsg () ;
}
/*!
* This method returns an error message. It guarantees that it does
* not return NULL (Returns “NULL“ instead of NULL pointer).
*
* \return A message describing the error.
*/
LPCSTR errmsg_exceptionA::errmsg (void) const
throw ()
{
if ( m_szErrMsg == NULL )
return “NULL“ ;
return m_szErrMsg ;
}
/*!
* This method assigns a new error message. If memory allocation failed
* NULL is assigned.
*
* \param szErrMsg A new error message.
*/
void errmsg_exceptionA::seterrmsg (LPCSTR
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 11706 2007-08-07 01:26 ryeolhttpclient_src\RyeolException.cpp
文件 6405 2007-08-07 01:26 ryeolhttpclient_src\RyeolException.h
文件 309323 2007-08-07 01:26 ryeolhttpclient_src\RyeolHttpClient.cpp
文件 101610 2007-08-07 01:26 ryeolhttpclient_src\RyeolHttpClient.h
文件 67003 2007-08-07 01:26 ryeolhttpclient_src\SafeInt.hpp
相关资源
- STM32F207通过http更新固件
- Qt画图工具源码(qgraphics draw)
- C语言封装的HttpClient接口
- c++开发http服务端+客户端
- DemoHttpMFC.zip
- c语言实现http服务器和浏览器进行数据
- 网络编程HttpServer c++实现
- c语言实现http服务器浏览器实时刷新数
- 服务端和客户端(MFC CSocket)
- IEC104规约Server及Client实现
- 简单HTTP代理服务器-源码c++
- vnc-4_1_3-x86_linux.tar.gz
- Kepware OPCClient C++程序
- C++ 实现 HTTP HTTPS POST GET(包含curl版本
- C语言搭建的简单web服务器
- rocketmq-client-cpp vs2015 x64 Debug.rar
- winsocket编程实现简单 server端和client端
- C++进行http请求,并获取返回结果
- HTTP 浏览器
- mqtt-client MFC工程调用开源代码
- Etcd C++ client 源码
- RabbitMQ client c++封装类 c++工程 (没有
- C++开发web服务框架之HTTP Web框架的设计
- rabbitmq的C++客户端SimpleAmqpClient编译库
- C++基于HTTP的POST上传,C#的网站接收并
- VC++ 实现自动升级 漂亮的界面效果
- C实现http服务源码 适用于linux 和wind
- C语言http客户端通信实现
- 用Socket写的HTTP类,商业级C++源码。
- HTTP chunked方式传输的C语言解析
评论
共有 条评论