Public Member Functions

cygnal::HTTPServer Class Reference

#include <http_server.h>

Inheritance diagram for cygnal::HTTPServer:
Inheritance graph
[legend]
Collaboration diagram for cygnal::HTTPServer:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 HTTPServer ()
 ~HTTPServer ()
http_method_e processClientRequest (int fd)
http_method_e processClientRequest (Handler *hand, int fd, cygnal::Buffer *buf)
cygnal::BufferprocessGetRequest (Handler *hand, int fd, cygnal::Buffer *buf)
boost::shared_ptr< cygnal::BufferprocessPostRequest (int fd, cygnal::Buffer *buf)
boost::shared_ptr< cygnal::BufferprocessPutRequest (int fd, cygnal::Buffer *buf)
boost::shared_ptr< cygnal::BufferprocessDeleteRequest (int fd, cygnal::Buffer *buf)
boost::shared_ptr< cygnal::BufferprocessConnectRequest (int fd, cygnal::Buffer *buf)
boost::shared_ptr< cygnal::BufferprocessOptionsRequest (int fd, cygnal::Buffer *buf)
boost::shared_ptr< cygnal::BufferprocessHeadRequest (int fd, cygnal::Buffer *buf)
boost::shared_ptr< cygnal::BufferprocessTraceRequest (int fd, cygnal::Buffer *buf)
boost::shared_ptr< cygnal::BufferformatServerReply (http_status_e code)
cygnal::BufferformatGetReply (gnash::DiskStream::filetype_e type, size_t size, http_status_e code)
cygnal::BufferformatGetReply (size_t size, http_status_e code)
cygnal::BufferformatGetReply (http_status_e code)
cygnal::BufferformatPostReply (rtmpt_cmd_e code)
cygnal::BufferformatErrorResponse (http_status_e err)
rtmpt_cmd_e extractRTMPT (boost::uint8_t *data)
rtmpt_cmd_e extractRTMPT (cygnal::Buffer &data)
bool http_handler (Handler *hand, int netfd, cygnal::Buffer *buf)
boost::shared_ptr
< gnash::DiskStream
getDiskStream ()
void dump ()

Constructor & Destructor Documentation

cygnal::HTTPServer::HTTPServer (  ) 
cygnal::HTTPServer::~HTTPServer (  ) 

Member Function Documentation

void cygnal::HTTPServer::dump (  ) 

Reimplemented from gnash::HTTP.

HTTPServer::rtmpt_cmd_e cygnal::HTTPServer::extractRTMPT ( boost::uint8_t *  data  ) 

These methods extract data from an RTMPT message. RTMP is an extension to HTTPServer that adds commands to manipulate the connection's persistance. The URL to be opened has the following form: http://server/<comand>/[<client>/]<index> <command> denotes the RTMPT request type, "OPEN", "SEND", "IDLE", "CLOSE") <client> specifies the id of the client that performs the requests (only sent for established sessions) <index> is a consecutive number that seems to be used to detect missing packages

References gnash::HTTP::_index.

rtmpt_cmd_e cygnal::HTTPServer::extractRTMPT ( cygnal::Buffer data  )  [inline]
cygnal::Buffer & cygnal::HTTPServer::formatErrorResponse ( http_status_e  err  ) 
cygnal::Buffer& cygnal::HTTPServer::formatGetReply ( gnash::DiskStream::filetype_e  type,
size_t  size,
http_status_e  code 
)

Reimplemented from gnash::HTTP.

cygnal::Buffer & cygnal::HTTPServer::formatGetReply ( size_t  size,
http_status_e  code 
)
cygnal::Buffer & cygnal::HTTPServer::formatGetReply ( http_status_e  code  ) 

Reimplemented from gnash::HTTP.

References gnash::HTTP::_filesize, and gnash::HTTP::formatHeader().

cygnal::Buffer & cygnal::HTTPServer::formatPostReply ( rtmpt_cmd_e  code  ) 
boost::shared_ptr<cygnal::Buffer> cygnal::HTTPServer::formatServerReply ( http_status_e  code  ) 

Reimplemented from gnash::HTTP.

boost::shared_ptr<gnash::DiskStream> cygnal::HTTPServer::getDiskStream (  )  [inline]
bool cygnal::HTTPServer::http_handler ( Handler hand,
int  netfd,
cygnal::Buffer buf 
)
HTTP::http_method_e cygnal::HTTPServer::processClientRequest ( int  fd  ) 

Referenced by http_handler().

HTTP::http_method_e cygnal::HTTPServer::processClientRequest ( Handler hand,
int  fd,
cygnal::Buffer buf 
)
boost::shared_ptr< cygnal::Buffer > cygnal::HTTPServer::processConnectRequest ( int  fd,
cygnal::Buffer buf 
)

Referenced by processClientRequest().

boost::shared_ptr< cygnal::Buffer > cygnal::HTTPServer::processDeleteRequest ( int  fd,
cygnal::Buffer buf 
)

Referenced by processClientRequest().

cygnal::Buffer & cygnal::HTTPServer::processGetRequest ( Handler hand,
int  fd,
cygnal::Buffer buf 
)
boost::shared_ptr< cygnal::Buffer > cygnal::HTTPServer::processHeadRequest ( int  fd,
cygnal::Buffer buf 
)

Referenced by processClientRequest().

boost::shared_ptr< cygnal::Buffer > cygnal::HTTPServer::processOptionsRequest ( int  fd,
cygnal::Buffer buf 
)

Referenced by processClientRequest().

boost::shared_ptr< cygnal::Buffer > cygnal::HTTPServer::processPostRequest ( int  fd,
cygnal::Buffer buf 
)
boost::shared_ptr< cygnal::Buffer > cygnal::HTTPServer::processPutRequest ( int  fd,
cygnal::Buffer buf 
)

Referenced by processClientRequest().

boost::shared_ptr< cygnal::Buffer > cygnal::HTTPServer::processTraceRequest ( int  fd,
cygnal::Buffer buf 
)

Referenced by processClientRequest().


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