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
# | |
#!/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" |
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
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(); |
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
// 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('/'); |
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
{ | |
"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": "" | |
}, |