资源简介
封装好的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
相关资源
- 纯C语言写的https模拟GET和POST
- C语言实现TFTP客户端代码
- c++ http
- c++ http并保存到本地
- C++ HTTP GET,POST的简单
- DHCP源码含server relay client
- winhttp 异步c++库
- 飞秋基于c语言实现
- C++实现HTTP处理类
- systemverilog验证 张春 源代码 http://ch
- C++ 实现的HTTP协议打包解析器
- C++实现HTTP(两种方式:WinInet和Socke
- 基于boost.asio库的C++http/https web server
- linux局域网聊天软件server+client 源码
- windows下C++实现的HTTP web 服务器
- 基于POP3、SMTP协议的MFC实现邮件客户端
- C语言浏览器和http服务器实验报告含代
- ntripclient-c++
- VC++ 实现将本地文件通过HTTP上传到网
- http 协议解析类 c++
- IOCP SOCKETserver and client 并且内]
- http协议实现c++
- C语言实现高并发http文件上传服务器
- c语言socket实现的http服务器
- 纯C语言实现https的post和get不依赖任何
- vc++ tcp 客户端和服务器端
- VC/MFC实现简单的Http服务器可访问图片
- http上传C++代码实现
- VC通过HttpGet和HttpPost方式与WebService通
- c++ 本地代理服务器源码
评论
共有 条评论