root/isimud/exchanges/MIT/TRQ/trq.hpp

/* [<][>][^][v][top][bottom][index][help] */

INCLUDED FROM


   1 #ifndef libjmmcg_isimud_exchanges_MIT_TRQ_trq_hpp
   2 #define libjmmcg_isimud_exchanges_MIT_TRQ_trq_hpp
   3 
   4 /******************************************************************************
   5 ** $Header: svn+ssh://jmmcg@svn.code.sf.net/p/libjmmcg/code/trunk/libjmmcg/isimud/exchanges/MIT/TRQ/trq.hpp 2256 2018-02-21 22:00:53Z jmmcg $
   6 **
   7 ** Copyright (c) 2015 by J.M.McGuiness, isimud@hussar.me.uk
   8 **
   9 ** This library is free software; you can redistribute it and/or
  10 ** modify it under the terms of the GNU Lesser General Public
  11 ** License as published by the Free Software Foundation; either
  12 ** version 2.1 of the License, or (at your option) any later version.
  13 **
  14 ** This library is distributed in the hope that it will be useful,
  15 ** but WITHOUT ANY WARRANTY; without even the implied warranty of
  16 ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  17 ** Lesser General Public License for more details.
  18 **
  19 ** You should have received a copy of the GNU Lesser General Public
  20 ** License along with this library; if not, write to the Free Software
  21 ** Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
  22 */
  23 
  24 #include "messages.hpp"
  25 
  26 #include "../common/connectivity_policy.hpp"
  27 #include "../common/processing_rules.hpp"
  28 #include "../../common/connection.hpp"
  29 #include "../../common/exchange_connection.hpp"
  30 
  31 #include "core/socket_server.hpp"
  32 
  33 namespace isimud { namespace exchanges { namespace MIT { namespace TRQ {
  34 
  35 using connection_t=exchanges::common::connection<MsgTypes, common::connectivity_policy<MsgTypes::logon_args_t>>;
  36 
  37 template<class ClientMsgTypes>
  38 using client_cxn_t=jmmcg::socket::svr<
  39         common::client_to_exchange_transformations<ClientMsgTypes, MsgTypes, connection_t::socket_t>,
  40         jmmcg::socket::server_manager::forwarding<connection_t::socket_t>
  41 >;
  42 template<class ClientMsgTypes>
  43 using exchange_cxn_t=exchanges::common::connection_processor<
  44         common::exchange_to_client_transformations<MsgTypes, ClientMsgTypes, connection_t::socket_t>,
  45         common::connectivity_policy<MsgTypes::logon_args_t>
  46 >;
  47 
  48 template<class ClientMsgTypes>
  49 using link_t=exchanges::common::exchange_connection<
  50         client_cxn_t<ClientMsgTypes>,
  51         exchange_cxn_t<ClientMsgTypes>
  52 >;
  53 
  54 } } } }
  55 
  56 #endif

/* [<][>][^][v][top][bottom][index][help] */