v8  3.25.30(node0.11.13)
V8 is Google's open source JavaScript engine
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
process.cc File Reference
#include <v8.h>
#include <string>
#include <map>
Include dependency graph for process.cc:

Go to the source code of this file.

Data Structures

class  HttpRequest
 
class  HttpRequestProcessor
 
class  JsHttpRequestProcessor
 
class  StringHttpRequest
 

Functions

string ObjectToString (Local< Value > value)
 
void ParseOptions (int argc, char *argv[], map< string, string > &options, string *file)
 
Handle< StringReadFile (Isolate *isolate, const string &name)
 
bool ProcessEntries (HttpRequestProcessor *processor, int count, StringHttpRequest *reqs)
 
void PrintMap (map< string, string > *m)
 
int main (int argc, char *argv[])
 

Variables

const int kSampleSize = 6
 
StringHttpRequest kSampleRequests [kSampleSize]
 

Function Documentation

string ObjectToString ( Local< Value value)

Definition at line 354 of file process.cc.

void ParseOptions ( int  argc,
char *  argv[],
map< string, string > &  options,
string *  file 
)

Definition at line 575 of file process.cc.

Referenced by main().

void PrintMap ( map< string, string > *  m)

Definition at line 637 of file process.cc.

Referenced by main().

bool ProcessEntries ( HttpRequestProcessor processor,
int  count,
StringHttpRequest reqs 
)

Definition at line 627 of file process.cc.

References HttpRequestProcessor::Process().

Referenced by main().

Handle<String> ReadFile ( Isolate isolate,
const string &  name 
)

Definition at line 594 of file process.cc.

References NULL, and size.

Referenced by main().

Variable Documentation

StringHttpRequest kSampleRequests[kSampleSize]
Initial value:
= {
StringHttpRequest("/process.cc", "localhost", "google.com", "firefox"),
StringHttpRequest("/", "localhost", "google.net", "firefox"),
StringHttpRequest("/", "localhost", "google.org", "safari"),
StringHttpRequest("/", "localhost", "yahoo.com", "ie"),
StringHttpRequest("/", "localhost", "yahoo.com", "safari"),
StringHttpRequest("/", "localhost", "yahoo.com", "firefox")
}

Definition at line 617 of file process.cc.

Referenced by main().

const int kSampleSize = 6

Definition at line 616 of file process.cc.

Referenced by RegExpEngine::Compile(), and main().