This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//Display RTSP streaming of video | |
//(c) 2011 Virgoptrex | |
// This code is distributed in the hope that it will be useful, | |
// but WITHOUT ANY WARRANTY; without even the implied warranty of | |
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | |
#include <string.h> | |
#include <math.h> | |
#include <gst/gst.h> | |
#include <glib.h> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include "event.h" | |
void craftIk_epoll_init( struct craftIk_epoll* epoll, int listenfd, int max_clients) | |
{ | |
struct epoll_event ev; | |
epoll->listenfd = listenfd; | |
epoll->max_clients = max_clients; | |
epoll->events = (struct epoll_event*)malloc( sizeof(struct epoll_event) * max_clients ); |