helpers/trig.cpp File Reference

#include <netinet/ip.h>
#include <netinet/in.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <arpa/inet.h>
#include <errno.h>
#include <string.h>
#include <unistd.h>
#include <linux/if_ether.h>
#include <sys/ioctl.h>
#include <sys/param.h>
#include <net/if.h>
#include <netdb.h>
#include <poll.h>
#include <map>
#include <set>
#include <iostream>

Include dependency graph for trig.cpp:

Go to the source code of this file.

Functions

int signal_recv (set< unsigned long > ports)
int signal_send (unsigned long port)
int main (int argc, char *argv[])

Variables

unsigned long port_out = 40000
unsigned long port_in = 40001


Function Documentation

int main ( int  argc,
char *  argv[] 
)

set port, start listening/answering HTTP requests

now try to mmap

These are read from frame zero (they are not frame-related)

now open circbuf

read pointer was invalid - try the earliest frame available

Definition at line 107 of file trig.cpp.

References n, port_in, port_out, signal_recv(), and signal_send().

int signal_recv ( set< unsigned long >  ports  ) 

Definition at line 32 of file trig.cpp.

References buf, fd, free(), malloc(), memset(), and s.

Referenced by main().

int signal_send ( unsigned long  port  ) 

Definition at line 72 of file trig.cpp.

References data, memset(), and s.

Referenced by main().


Variable Documentation

unsigned long port_in = 40001

Definition at line 30 of file trig.cpp.

Referenced by main().

unsigned long port_out = 40000

Definition at line 29 of file trig.cpp.

Referenced by main().


Generated on Fri Nov 28 00:07:32 2008 for elphel by  doxygen 1.5.1