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 >)
 Construct from custom policy. More...
 
void openServer ()
 Open server. More...
 

Protected Attributes

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

Private Member Functions

void accept (Socket *)
 Accept client. 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 21 of file FlashPolicyServer.hpp.

Constructor & Destructor Documentation

FlashPolicyServer::FlashPolicyServer ( )

Default constructor.

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

Definition at line 14 of file FlashPolicyServer.cpp.

References policy.

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

Construct from custom policy.

Parameters
policyCustom cross-domain-policy to adjust

Member Function Documentation

void FlashPolicyServer::openServer ( )

Open server.

Definition at line 32 of file FlashPolicyServer.cpp.

References accept().

Here is the call graph for this function:

void FlashPolicyServer::accept ( Socket *  )
private

Accept client.

Accepts flash client and replies cross-domain-policy

Definition at line 46 of file FlashPolicyServer.cpp.

References policy.

Referenced by openServer().

Here is the caller graph for this function:

Member Data Documentation

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

cross-domain-policy

Definition at line 27 of file FlashPolicyServer.hpp.

Referenced by accept(), and FlashPolicyServer().


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