Defines | Functions | Variables

cygnal.cpp File Reference

#include <sys/stat.h>
#include <list>
#include <map>
#include <iostream>
#include <sstream>
#include <csignal>
#include <vector>
#include <sys/mman.h>
#include <cerrno>
#include <sys/types.h>
#include <fcntl.h>
#include "GnashSleep.h"
#include "revno.h"
#include "GnashSystemIOHeaders.h"
#include <boost/shared_ptr.hpp>
#include "network.h"
#include "log.h"
#include "crc.h"
#include "proc.h"
#include "rtmp.h"
#include "buffer.h"
#include "utility.h"
#include "limits.h"
#include "netstats.h"
#include "statistics.h"
#include "gmemory.h"
#include "diskstream.h"
#include "arg_parser.h"
#include "GnashException.h"
#include "URL.h"
#include "rtmp_client.h"
#include "rtmp_server.h"
#include "http_server.h"
#include "handler.h"
#include "cache.h"
#include "cygnal.h"
#include <boost/date_time/gregorian/gregorian.hpp>
#include <boost/date_time/time_zone_base.hpp>
#include <boost/date_time/posix_time/posix_time.hpp>
#include <boost/thread/thread.hpp>
#include <boost/bind.hpp>
#include <boost/thread/mutex.hpp>
#include <boost/thread/condition.hpp>
#include <boost/thread/tss.hpp>
Include dependency graph for cygnal.cpp:

Defines

#define POLLRDHUP   0

Functions

int getopt (int, char *const *, const char *)
void connection_handler (Network::thread_params_t *args)
void event_handler (Network::thread_params_t *args)
void admin_handler (Network::thread_params_t *args)
int main (int argc, char *argv[])

Variables

int optind
char * optarg
struct sigaction act1 act2
int thread_retries = 10
const int ADMINPKTSIZE = 80
ThreadCounter tids
map< int, Network * > networks
const char * proto_str []

Define Documentation

#define POLLRDHUP   0

Function Documentation

void admin_handler ( Network::thread_params_t args  ) 
void connection_handler ( Network::thread_params_t args  ) 
void event_handler ( Network::thread_params_t args  ) 
int getopt ( int  ,
char *const *  ,
const char *   
)
int main ( int  argc,
char *  argv[] 
)

Variable Documentation

struct sigaction act1 act2

Referenced by main().

const int ADMINPKTSIZE = 80

Referenced by admin_handler().

map<int, Network *> networks
char* optarg
int optind
const char* proto_str[]
Initial value:
 {
    "NONE",
    "HTTP",
    "HTTPS",
    "RTMP",
    "RTMPT",
    "RTMPTS",
    "RTMPE",
    "RTMPS",
    "DTN"
}

Referenced by connection_handler(), cygnal::Handler::dump(), and event_handler().

int thread_retries = 10