Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019 #ifndef _GATEWAY_H_
00020 #define _GATEWAY_H_
00021
00022 #include <string>
00023 #include <vector>
00024 #include <boost/shared_ptr.hpp>
00025 #include <boost/shared_array.hpp>
00026 #include <boost/scoped_array.hpp>
00027 #include <sstream>
00028
00029 #include "amf.h"
00030 #include "buffer.h"
00031 #include "element.h"
00032 #include "rtmp.h"
00033
00034 #include "http.h"
00035
00036 namespace cygnal
00037 {
00038
00039 class GatewayTest : public gnash::HTTP
00040 {
00041 public:
00042 GatewayTest ();
00043 ~GatewayTest ();
00044
00045
00046 std::vector<boost::shared_ptr<amf::Element > > parseEchoRequest(amf::Buffer &buf)
00047 { return parseEchoRequest(buf.reference(), buf.size()); };
00048 std::vector<boost::shared_ptr<amf::Element > > parseEchoRequest(boost::uint8_t *buf, size_t size);
00049
00050
00051 amf::Buffer &formatEchoResponse(const std::string &num, amf::Element &el);
00052 amf::Buffer &formatEchoResponse(const std::string &num, amf::Buffer &data);
00053 amf::Buffer &formatEchoResponse(const std::string &num, boost::uint8_t *data, size_t size);
00054 private:
00055 };
00056
00057 }
00058 #endif // end of __GATEWAY_H__
00059
00060
00061
00062
00063