Skip to content

Commit

Permalink
Merge branch 'develop'
Browse files Browse the repository at this point in the history
  • Loading branch information
godai0519 committed Mar 29, 2013
2 parents 56729bd + ef74695 commit c9e0574
Show file tree
Hide file tree
Showing 50 changed files with 87 additions and 53 deletions.
5 changes: 3 additions & 2 deletions example/client/async_client/async_client.cpp
@@ -1,4 +1,5 @@
#include <iostream>
#include <boostconnect/config.hpp>
#include <boostconnect/connection_type/async_connection.hpp>
#include <boostconnect/client.hpp>

Expand All @@ -7,7 +8,7 @@ int main()
typedef boost::system::error_code error_code;
typedef bstcon::client::response_type response_type; // = boost::shared_ptr<bstcon::response>
typedef bstcon::client::connection_ptr connection_ptr;

// Make: request header and body
boost::shared_ptr<boost::asio::streambuf> request_keep(new boost::asio::streambuf());
{
Expand Down Expand Up @@ -71,7 +72,7 @@ int main()
[](bstcon::client::response_type response, boost::system::error_code ec)->void // Callback
{
if(ec && ec != boost::asio::error::eof) throw;

// Show second response
std::cout << "Status Code: " << response->status_code << " " << response->status_message << std::endl;
std::cout << response->body + "\n\n" << std::endl;
Expand Down
1 change: 1 addition & 0 deletions example/client/sync_client/sync_client.cpp
@@ -1,4 +1,5 @@
#include <iostream>
#include <boostconnect/config.hpp>
#include <boostconnect/connection_type/async_connection.hpp>
#include <boostconnect/client.hpp>

Expand Down
1 change: 1 addition & 0 deletions example/server/server.cpp
@@ -1,4 +1,5 @@
#include <iostream>
#include <boostconnect/config.hpp>
#include <boostconnect/server.hpp>
#include <boost/format.hpp>
#include <boost/foreach.hpp>
Expand Down
Expand Up @@ -2,7 +2,7 @@
// socket_base.ipp
// ~~~~~~~~~~
//
// socket_baseの実装
// TCP/SSL/TLS sockets wrapper(common) classes
//

#ifndef BOOSTCONNECT_APPLAYER_SOCKET_BASE_IPP
Expand Down
2 changes: 1 addition & 1 deletion include/boostconnect/application_layer/impl/ssl_socket.ipp
Expand Up @@ -2,7 +2,7 @@
// ssl_socket.ipp
// ~~~~~~~~~~
//
// ssl_socketの実装
// Specialization from socket_base to SSL connection
//

#ifdef USE_SSL_BOOSTCONNECT
Expand Down
2 changes: 1 addition & 1 deletion include/boostconnect/application_layer/impl/tcp_socket.ipp
Expand Up @@ -2,7 +2,7 @@
// tcp_socket.ipp
// ~~~~~~~~~~
//
// tcp_socketの実装
// Specialization from socket_base to TCP connection
//

#ifndef BOOSTCONNECT_APPLAYER_TCP_SOCKET_IPP
Expand Down
2 changes: 1 addition & 1 deletion include/boostconnect/application_layer/socket_base.hpp
Expand Up @@ -2,7 +2,7 @@
// socket_base.hpp
// ~~~~~~~~~~
//
// ソケットラッパーベースクラス
// TCP/SSL/TLS sockets wrapper(common) classes
//

#ifndef BOOSTCONNECT_APPLAYER_SOCKET_BASE_HPP
Expand Down
2 changes: 1 addition & 1 deletion include/boostconnect/application_layer/ssl_socket.hpp
Expand Up @@ -2,7 +2,7 @@
// ssl_socket.hpp
// ~~~~~~~~~~
//
// SSL通信で特別に行われることを行う
// Specialization from socket_base to SSL connection
//

#ifdef USE_SSL_BOOSTCONNECT
Expand Down
2 changes: 1 addition & 1 deletion include/boostconnect/application_layer/tcp_socket.hpp
Expand Up @@ -2,7 +2,7 @@
// tcp_socket.hpp
// ~~~~~~~~~~
//
// TCP通信で特別に行われることを行う
// Specialization from socket_base to TCP connection
//

#ifndef BOOSTCONNECT_APPLAYER_TCP_SOCKET_HPP
Expand Down
2 changes: 1 addition & 1 deletion include/boostconnect/client.hpp
Expand Up @@ -2,7 +2,7 @@
// client.hpp
// ~~~~~~~~~~
//
// クライアント接続のメイン管理クラス
// Main Client Connection provide class
//

#ifndef BOOSTCONNECT_CLIENT_HPP
Expand Down
2 changes: 1 addition & 1 deletion include/boostconnect/connection_type/async_connection.hpp
Expand Up @@ -2,7 +2,7 @@
// async_connection.hpp
// ~~~~~~~~~~
//
// 非同期のためのクラス群
// Specialization from connection_base to ASync Connection
//

#ifndef BOOSTCONNECT_CONNECTTYPE_ASYNC_CONNECTION_HPP
Expand Down
2 changes: 1 addition & 1 deletion include/boostconnect/connection_type/connection_base.hpp
Expand Up @@ -2,7 +2,7 @@
// connection_base.hpp
// ~~~~~~~~~~
//
// 同期や非同期判断のための、Boost.Asioを使用したクラス群
// Provide Sync/ASync Connection Common Class powered by Boost.Asio
//

#ifndef BOOSTCONNECT_CONNECTTYPE_CONNECTION_BASE_HPP
Expand Down
Expand Up @@ -2,7 +2,7 @@
// async_connection.ipp
// ~~~~~~~~~~
//
// async_connectionの実装
// Specialization from connection_base to ASync Connection
//

#ifndef BOOSTCONNECT_CONNECTTYPE_ASYNC_CONNECTION_IPP
Expand Down
Expand Up @@ -2,7 +2,7 @@
// connection_base.ipp
// ~~~~~~~~~~
//
// connection_baseの実装
// Provide Sync/ASync Connection Common Class powered by Boost.Asio
//

#ifndef BOOSTCONNECT_CONNECTTYPE_CONNECTION_BASE_IPP
Expand Down
Expand Up @@ -2,7 +2,7 @@
// sync_connection.ipp
// ~~~~~~~~~~
//
// sync_connectionの実装
// Specialization from connection_base to Sync Connection
//

#ifndef BOOSTCONNECT_CONNECTTYPE_SYNC_CONNECTION_IPP
Expand Down
2 changes: 1 addition & 1 deletion include/boostconnect/connection_type/sync_connection.hpp
Expand Up @@ -2,7 +2,7 @@
// sync_connection.hpp
// ~~~~~~~~~~
//
// 同期のためのクラス群
// Specialization from connection_base to Sync Connection
//

#ifndef BOOSTCONNECT_CONNECTTYPE_SYNC_CONNECTION_HPP
Expand Down
2 changes: 1 addition & 1 deletion include/boostconnect/content/binary.hpp
Expand Up @@ -2,7 +2,7 @@
// urlencode.hpp
// ~~~~~~~~~~
//
//
// For application/* Data
//

#ifndef BOOSTCONNECT_CONTENT_BINARY_HPP
Expand Down
2 changes: 1 addition & 1 deletion include/boostconnect/content/content_base.hpp
Expand Up @@ -2,7 +2,7 @@
// content_base.hpp
// ~~~~~~~~~~
//
// サーバー接続のメイン管理クラス
// Provide common function for HTTPs body make
//

#ifndef BOOSTCONNECT_CONTENT_BASE_HPP
Expand Down
2 changes: 1 addition & 1 deletion include/boostconnect/content/impl/binary.ipp
Expand Up @@ -2,7 +2,7 @@
// urlencode.hpp
// ~~~~~~~~~~
//
//
// For application/* Data
//

#ifndef BOOSTCONNECT_CONTENT_BINARY_IPP
Expand Down
2 changes: 1 addition & 1 deletion include/boostconnect/content/impl/content_base.ipp
Expand Up @@ -2,7 +2,7 @@
// content_base.ipp
// ~~~~~~~~~~
//
//
// Provide common function for HTTP body make
//

#ifndef BOOSTCONNECT_CONTENT_BASE_IPP
Expand Down
2 changes: 1 addition & 1 deletion include/boostconnect/content/impl/multipart.ipp
Expand Up @@ -2,7 +2,7 @@
// multipart.hpp
// ~~~~~~~~~~
//
//
// Provide common for multipart/* Data (Able recursive structure)
//

#ifndef BOOSTCONNECT_CONTENT_MULTIPART_IPP
Expand Down
2 changes: 1 addition & 1 deletion include/boostconnect/content/impl/multipart_form_data.ipp
Expand Up @@ -2,7 +2,7 @@
// multipart_form_data.hpp
// ~~~~~~~~~~
//
//
// For multipart/form_data Data
//

#ifndef BOOSTCONNECT_CONTENT_MULTIPART_FORM_DATA_IPP
Expand Down
2 changes: 1 addition & 1 deletion include/boostconnect/content/impl/multipart_mixed.ipp
Expand Up @@ -2,7 +2,7 @@
// multipart_mixed.hpp
// ~~~~~~~~~~
//
//
// For multipart/mixed Data
//

#ifndef BOOSTCONNECT_CONTENT_MULTIPART_MIXED_IPP
Expand Down
2 changes: 1 addition & 1 deletion include/boostconnect/content/impl/text.ipp
Expand Up @@ -2,7 +2,7 @@
// text.hpp
// ~~~~~~~~~~
//
//
// For text/* Data
//

#ifndef BOOSTCONNECT_CONTENT_TEXT_IPP
Expand Down
2 changes: 1 addition & 1 deletion include/boostconnect/content/impl/urlencoded.ipp
Expand Up @@ -2,7 +2,7 @@
// urlencoded.ipp
// ~~~~~~~~~~
//
//
// For application/x-www-form-urlencoded Data
//

#ifndef BOOSTCONNECT_CONTENT_URLENCODED_IPP
Expand Down
2 changes: 1 addition & 1 deletion include/boostconnect/content/multipart.hpp
Expand Up @@ -2,7 +2,7 @@
// multipart.hpp
// ~~~~~~~~~~
//
//
// Provide common for multipart/* Data (Able recursive structure)
//

#ifndef BOOSTCONNECT_CONTENT_MULTIPART_HPP
Expand Down
2 changes: 1 addition & 1 deletion include/boostconnect/content/multipart_form_data.hpp
Expand Up @@ -2,7 +2,7 @@
// multipart_form_data.hpp
// ~~~~~~~~~~
//
//
// For multipart/form_data Data
//

#ifndef BOOSTCONNECT_CONTENT_MULTIPART_FORM_DATA_HPP
Expand Down
2 changes: 1 addition & 1 deletion include/boostconnect/content/multipart_mixed.hpp
Expand Up @@ -2,7 +2,7 @@
// multipart_mixed.hpp
// ~~~~~~~~~~
//
//
// For multipart/mixed Data
//

#ifndef BOOSTCONNECT_CONTENT_MULTIPART_MIXED_HPP
Expand Down
2 changes: 1 addition & 1 deletion include/boostconnect/content/text.hpp
Expand Up @@ -2,7 +2,7 @@
// text.hpp
// ~~~~~~~~~~
//
//
// For text/* Data
//

#ifndef BOOSTCONNECT_CONTENT_TEXT_HPP
Expand Down
2 changes: 1 addition & 1 deletion include/boostconnect/content/urlencoded.hpp
Expand Up @@ -2,7 +2,7 @@
// urlencoded.hpp
// ~~~~~~~~~~
//
//
// For application/x-www-form-urlencoded Data
//

#ifndef BOOSTCONNECT_CONTENT_URLENCODED_HPP
Expand Down
2 changes: 1 addition & 1 deletion include/boostconnect/impl/client.ipp
Expand Up @@ -2,7 +2,7 @@
// client.ipp
// ~~~~~~~~~~
//
// clientの実装
// Main Client Connection provide class
//

#ifndef BOOSTCONNECT_CLIENT_IPP
Expand Down
2 changes: 1 addition & 1 deletion include/boostconnect/impl/manager.ipp
Expand Up @@ -2,7 +2,7 @@
// manager.ipp
// ~~~~~~~~~~
//
// managerの実装
// Session Manager
//

#ifndef BOOSTCONNECT_MANAGER_IPP
Expand Down
2 changes: 1 addition & 1 deletion include/boostconnect/impl/server.ipp
Expand Up @@ -2,7 +2,7 @@
// server.ipp
// ~~~~~~~~~~
//
// serverの実装
// Main Sever Connection provide class
//

#ifndef BOOSTCONNECT_SERVER_IPP
Expand Down
2 changes: 1 addition & 1 deletion include/boostconnect/manager.hpp
Expand Up @@ -2,7 +2,7 @@
// manager.hpp
// ~~~~~~~~~~
//
// Sessionの寿命を管理するmanager
// Session Manager
//

#ifndef BOOSTCONNECT_MANAGER_HPP
Expand Down
2 changes: 1 addition & 1 deletion include/boostconnect/request.hpp
Expand Up @@ -2,7 +2,7 @@
// request.hpp
// ~~~~~~~~~~
//
// リクエストコンテナー
// Request Containar
//

#ifndef BOOSTCONNECT_REQUEST
Expand Down
2 changes: 1 addition & 1 deletion include/boostconnect/response.hpp
Expand Up @@ -2,7 +2,7 @@
// response.hpp
// ~~~~~~~~~~
//
// レスポンスコンテナー
// Response Containar
//

#ifndef BOOSTCONNECT_RESPONSE
Expand Down
2 changes: 1 addition & 1 deletion include/boostconnect/server.hpp
Expand Up @@ -2,7 +2,7 @@
// server.hpp
// ~~~~~~~~~~
//
// サーバー接続のメイン管理クラス
// Main Sever Connection provide class
//

#ifndef BOOSTCONNECT_SERVER_HPP
Expand Down
2 changes: 1 addition & 1 deletion include/boostconnect/session/http_session.hpp
Expand Up @@ -2,7 +2,7 @@
// http_session.hpp
// ~~~~~~~~~~
//
// HTTP通信のセッションを管理
// Management a HTTP Connection's Session
//

#ifndef BOOSTCONNECT_SESSION_HTTP_HPP
Expand Down
2 changes: 1 addition & 1 deletion include/boostconnect/session/impl/http_session.ipp
Expand Up @@ -2,7 +2,7 @@
// http_session.ipp
// ~~~~~~~~~~
//
// http_sessionの実装
// Management a HTTP Connection's Session
//

#ifndef BOOSTCONNECT_SESSION_HTTP_IPP
Expand Down
2 changes: 1 addition & 1 deletion include/boostconnect/session/impl/session_base.ipp
Expand Up @@ -2,7 +2,7 @@
// session_base.ipp
// ~~~~~~~~~~
//
// session_baseの実装
// Provide Connection's Session for HTTP(etc.)
//

#ifndef BOOSTCONNECT_SESSION_BASE_IPP
Expand Down
2 changes: 1 addition & 1 deletion include/boostconnect/session/session_base.hpp
Expand Up @@ -2,7 +2,7 @@
// session_base.hpp
// ~~~~~~~~~~
//
// Session共通設定
// Provide Connection's Session for HTTP(etc.)
//

#ifndef BOOSTCONNECT_SESSION_BASE_HPP
Expand Down
2 changes: 1 addition & 1 deletion include/boostconnect/system/error_code.hpp
Expand Up @@ -2,7 +2,7 @@
// error_code.hpp
// ~~~~~~~~~~
//
// 例外処理とか
// Provide Error System
//

#ifndef BOOSTCONNECT_SYSTEM_ERROR_CODE_HPP
Expand Down
2 changes: 1 addition & 1 deletion include/boostconnect/system/impl/error_code.ipp
Expand Up @@ -2,7 +2,7 @@
// error_code.ipp
// ~~~~~~~~~~
//
// error_codeの実装
// Provide Error System
//

#ifndef BOOSTCONNECT_SYSTEM_ERROR_CODE_IPP
Expand Down

0 comments on commit c9e0574

Please sign in to comment.