1 #ifndef __RTFX_SERVER__
2 #define __RTFX_SERVER__
27 #include <boost/bind.hpp>
28 #include <boost/shared_ptr.hpp>
29 #include <boost/enable_shared_from_this.hpp>
30 #include <boost/asio.hpp>
32 #include "RTFXDebug.h"
35 #include "RTFXSession.h"
37 using boost::asio::ip::tcp;
41 typedef boost::shared_ptr<RTFXSession> RTFXSessionPtr;
52 RTFXServer( boost::asio::io_service &_ioService,
const tcp::endpoint &_endpoint );
55 void StartAccepting();
58 void HandleAccept( RTFXSessionPtr _session,
const boost::system::error_code &_error );
69 compressionType = _value;
70 postOffice.SetDefaultCompressionType( _value );