Skip to content

Instantly share code, notes, and snippets.

#
#!/bin/sh -e
#
# Startup script for Red5
export RED5_HOME=/usr/share/red5/
start_red5="$RED5_HOME/red5-highperf.sh start"
stop_red5="$RED5_HOME/red5-shutdown.sh stop"
@rdemarco
rdemarco / gist:7793353
Created December 4, 2013 18:57
Red5 client cleanup ?
private void doCleanUp(IScope scope){
ConcurrentHashMap<Integer,UserLive> scopeUserList =userList.get(scope.getName());
for (Iterator<Entry<Integer, UserLive>> iter = scopeUserList.entrySet().iterator(); iter.hasNext(); ) {
Map.Entry<Integer, UserLive> entry = iter.next();
UserLive value = (UserLive)entry.getValue();
Set<IClient> clients = scope.getClients();
Boolean exist = false;
for (Iterator<IClient> red5ClientIter = clients.iterator(); iter.hasNext(); ) {
IClient aClient = red5ClientIter.next();
@rdemarco
rdemarco / gist:5506473
Created May 3, 2013 00:33
Here is the app.js for the demo i'm trying to upload to nodejitso
// Including libraries
var app = require('express').createServer(handler),
io = require('socket.io').listen(app),
static = require('node-static'); // for serving files
var path = require("path");
// This will make all the files in the current folder
// accessible from the web
var fileServer = new static.Server('/');
{
"name": "Zen_test",
"subdomain": "madwill",
"description": "example chat application with socket.io",
"version": "0.0.2",
"dependencies": {
"express": "2.4.6",
"socket.io": "",
"node-static": ""
},