Skip to content

Instantly share code, notes, and snippets.

View thabongshot's full-sized avatar

Thabong Lee thabongshot

View GitHub Profile
//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>
@thabongshot
thabongshot / epoll.c
Created November 6, 2012 17:07
craftIk epoll test
#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 );