Samchon Framework for CPP  1.0.0
samchon::protocol::FlashPolicyServer Class Reference

A flash policy server. More...

#include <FlashPolicyServer.hpp>

Public Member Functions

 FlashPolicyServer ()
 Default constructor. More...
 
 FlashPolicyServer (std::shared_ptr< library::XML > policy)
 Construct from custom policy_. More...
 
void open (int port=843)
 Open server. More...
 
auto getPolicy () const -> std::shared_ptr< library::XML >
 Get policy. More...
 

Private Member Functions

void accept (std::shared_ptr< boost::asio::ip::tcp::socket > socket)
 Accept client. More...
 

Private Attributes

std::shared_ptr< library::XMLpolicy
 cross-domain-policy_ More...
 

Detailed Description

A flash policy server.

FlashPolicyServer is a policy_ server replying cross-domain-policy_ to flash clients.

Author
Jeongho Nam http://samchon.org

Definition at line 23 of file FlashPolicyServer.hpp.

Constructor & Destructor Documentation

samchon::protocol::FlashPolicyServer::FlashPolicyServer ( )
inline

Default constructor.

The cross-domain-policy_ is to accept all, any client.

Definition at line 37 of file FlashPolicyServer.hpp.

samchon::protocol::FlashPolicyServer::FlashPolicyServer ( std::shared_ptr< library::XML policy)
inline

Construct from custom policy_.

Parameters
policy_Custom cross-domain-policy_ to adjust

Definition at line 56 of file FlashPolicyServer.hpp.

Member Function Documentation

void samchon::protocol::FlashPolicyServer::open ( int  port = 843)
inline

Open server.

Definition at line 64 of file FlashPolicyServer.hpp.

auto samchon::protocol::FlashPolicyServer::getPolicy ( ) const -> std::shared_ptr<library::XML>
inline

Get policy.

Definition at line 82 of file FlashPolicyServer.hpp.

void samchon::protocol::FlashPolicyServer::accept ( std::shared_ptr< boost::asio::ip::tcp::socket >  socket)
inlineprivate

Accept client.

Accepts flash client and replies cross-domain-policy_

Definition at line 98 of file FlashPolicyServer.hpp.

Member Data Documentation

std::shared_ptr<library::XML> samchon::protocol::FlashPolicyServer::policy
private

cross-domain-policy_

Definition at line 29 of file FlashPolicyServer.hpp.


The documentation for this class was generated from the following file: