Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
ideawu committed Oct 28, 2013
1 parent 9f3627f commit 4ff5e20
Show file tree
Hide file tree
Showing 24 changed files with 24 additions and 133 deletions.
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
version.h
log.txt
config.h
comet-server
online-server
*.dSYM
*.pid
*.o
*.lo
Expand All @@ -13,7 +16,6 @@ tools/benchmark
*.pyc
*.swp
*.exe
comet
icomet
config.mk
deps/libevent-2.0.21-stable/test
Expand Down
10 changes: 5 additions & 5 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@ include config.mk
.PHONY: all tools clean

all:
cd src/util; make
cd src; make
cd util; make
cd comet; make

tools:
cd tools; make

clean:
rm -f *.exe.stackdump icomet
cd src/util; make clean
cd src; make clean
rm -f *.exe.stackdump
cd util; make clean
cd comet; make clean
12 changes: 7 additions & 5 deletions icomet.conf → comet.conf
Original file line number Diff line number Diff line change
Expand Up @@ -3,23 +3,25 @@
pidfile = ./icomet.pid

logger:
level: debug
level: trace
output: stdout
rotate:
size: 1000000000

admin:
listen: 127.0.0.1:8000
#listen: 127.0.0.1:8000
listen: 0.0.0.0:8000
# allowed ip prefix, one ip each line
allow: 127.0.0.1
allow: 192.168
deny: all
#deny: all
#allow: all

front:
listen: 0.0.0.0:8100
# none|token
auth: none
max_channels: 1000
auth: token
max_channels: 1000000
max_subscribers_per_channel: 16
# number of messages buffered
channel_buffer_size: 10
Expand Down
9 changes: 5 additions & 4 deletions src/Makefile → comet/Makefile
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
include ../config.mk

OBJS = channel.o server.o
CFLAGS += -I ../

all: $(OBJS)
$(CC) -o ../icomet $(CFLAGS) \
util/*.o *.o icomet.cpp \
$(CC) -o ../comet-server $(CFLAGS) \
comet-server.cpp $(OBJS) \
../util/*.o \
$(LIBEVENT_PATH)/.libs/libevent.a \
$(CLIBS)

Expand All @@ -13,6 +15,5 @@ channel.o: channel.h channel.cpp
server.o: server.h server.cpp
$(CC) -c $(CFLAGS) server.cpp


clean:
rm -f *.o
rm -f *.o ../comet-server
1 change: 1 addition & 0 deletions comet/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Periodically shipped most recent presence activities(online, offline) to presence servers
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion src/icomet.cpp → comet/comet-server.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@
#include "util/config.h"
#include "util/strings.h"
#include "util/daemon.h"
#include "util/ip_filter.h"
#include "channel.h"
#include "server.h"
#include "server_config.h"
#include "ip_filter.h"

// for testing
#define MAX_BIND_PORTS 1
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
1 change: 1 addition & 0 deletions online/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Connect to comet servers, subscribe presence activities to build presence table.
115 changes: 0 additions & 115 deletions src/util/config.h

This file was deleted.

2 changes: 1 addition & 1 deletion src/util/Makefile → util/Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
include ../../config.mk
include ../config.mk

OBJS = log.o config.o
EXES =
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
1 change: 0 additions & 1 deletion web/js/icomet.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ config = {
callback: function(msg){}
};
*/
// TODO: let signUrl be optional
function iComet(config){
var self = this;
if(iComet.id__ == undefined){
Expand Down

0 comments on commit 4ff5e20

Please sign in to comment.