OpenSDN source code
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
sandesh_http.cc File Reference
#include "io/event_manager.h"
#include "http/http_server.h"
#include <cstring>
#include <cstdlib>
#include <boost/bind.hpp>
#include <boost/tokenizer.hpp>
#include <sandesh/sandesh_types.h>
#include <sandesh/sandesh.h>
#include <sandesh/sandesh_http.h>
#include <sandesh/transport/TBufferTransports.h>
#include <sandesh/protocol/TXMLProtocol.h>
#include "sandesh_client.h"
#include <sandesh/sandesh_trace.h>
#include <sandesh/sandesh_trace_types.h>
#include "http/http_request.h"
#include "http/http_session.h"
#include "css_bootstrap_min_css.cpp"
#include "css_DT_bootstrap_css.cpp"
#include "css_images_sort_asc_png.cpp"
#include "css_images_sort_asc_disabled_png.cpp"
#include "css_images_sort_both_png.cpp"
#include "css_images_sort_desc_png.cpp"
#include "css_images_sort_desc_disabled_png.cpp"
#include "css_style_css.cpp"
#include "js_bootstrap_min_js.cpp"
#include "js_DT_bootstrap_js.cpp"
#include "js_jquery_2_0_3_min_js.cpp"
#include "js_jquery_dataTables_min_js.cpp"
#include "js_util_js.cpp"
#include "universal_parse_xsl.cpp"
Include dependency graph for sandesh_http.cc:

Go to the source code of this file.

Macros

#define SESSION_SEND(buf)   HttpSession::SendSession(context,reinterpret_cast<const u_int8_t *>(buf), strlen(buf), NULL)
 

Enumerations

enum  HttpXMLState { HXMLInvalid, HXMLNew, HXMLIncomplete, HXMLMax }
 

Functions

static void HttpSendXML (const std::string &context, const u_int8_t *buf, uint32_t len, const char *name, bool more)
 
static void HttpSandeshFileCallback (SandeshHttp::HtmlInfo *hti, HttpSession *session, const HttpRequest *request)
 
static void HttpSandeshRequestCallback (HttpServer *hs, HttpSession *session, const HttpRequest *request)
 

Variables

static int kEncodeBufferSize = 4096
 
SandeshHttp::RequestCallbackFn httpreqcb
 

Macro Definition Documentation

#define SESSION_SEND (   buf)    HttpSession::SendSession(context,reinterpret_cast<const u_int8_t *>(buf), strlen(buf), NULL)

Definition at line 64 of file sandesh_http.cc.

Enumeration Type Documentation

Enumerator
HXMLInvalid 
HXMLNew 
HXMLIncomplete 
HXMLMax 

Definition at line 67 of file sandesh_http.cc.

Function Documentation

static void HttpSandeshFileCallback ( SandeshHttp::HtmlInfo hti,
HttpSession session,
const HttpRequest request 
)
static

Definition at line 225 of file sandesh_http.cc.

Here is the call graph for this function:

static void HttpSandeshRequestCallback ( HttpServer hs,
HttpSession session,
const HttpRequest request 
)
static

Definition at line 277 of file sandesh_http.cc.

Here is the call graph for this function:

static void HttpSendXML ( const std::string &  context,
const u_int8_t *  buf,
uint32_t  len,
const char *  name,
bool  more 
)
static

Definition at line 85 of file sandesh_http.cc.

Here is the call graph for this function:

Variable Documentation

Definition at line 266 of file sandesh_http.cc.

int kEncodeBufferSize = 4096
static

Definition at line 51 of file sandesh_http.cc.