Skip to content

Commit

Permalink
rename comet-server -> icomet-server
Browse files Browse the repository at this point in the history
  • Loading branch information
ideawu committed Oct 22, 2014
1 parent fdc6397 commit 07182fd
Show file tree
Hide file tree
Showing 7 changed files with 16 additions and 13 deletions.
5 changes: 4 additions & 1 deletion .gitignore
Expand Up @@ -2,7 +2,10 @@ version.h
build.h
build.mk
log.txt
comet-server*
comet-server
comet-server-*
icomet-server
icomet-server-*
online-server
dev_icomet.conf
*.dSYM
Expand Down
4 changes: 2 additions & 2 deletions Makefile
Expand Up @@ -7,7 +7,7 @@ all:
mkdir -p logs
cd src/util; make
cd src/comet; make
cp -f comet-server comet-server-`cat version`
cp -f icomet-server icomet-server-`cat version`

tools:
cd tools; make
Expand All @@ -16,7 +16,7 @@ clean:
rm -f *.exe.stackdump
cd src/util; make clean
cd src/comet; make clean
rm -f comet-server-*
rm -f icomet-server-*

clean_all: clean
cd $(JEMALLOC_PATH); make clean
Expand Down
2 changes: 1 addition & 1 deletion demo/web/forever-iframe.html
Expand Up @@ -9,7 +9,7 @@
<pre style="height:200px; width: 600px; border: 1px solid #999; overflow: auto; background: #eee; padding: 8px;">
## How to Use?

1. start comet-server
1. start icomet-server

2. assuming you are running nginx listening on port 8080, if not,
you will have to modify "8080" in this file to the exact port number,
Expand Down
2 changes: 1 addition & 1 deletion demo/web/long-polling.html
Expand Up @@ -9,7 +9,7 @@
<pre style="height:200px; width: 600px; border: 1px solid #999; overflow: auto; background: #eee; padding: 8px;">
## How to Use?

1. start comet-server
1. start icomet-server

2. assuming you are running nginx listening on port 8080, if not,
you will have to modify "8080" in this file to the exact port number,
Expand Down
6 changes: 3 additions & 3 deletions src/comet/Makefile
Expand Up @@ -4,8 +4,8 @@ OBJS = subscriber.o channel.o server.o
CFLAGS += -I ../

all: $(OBJS)
$(CC) -o ../../comet-server $(CFLAGS) \
comet-server.cpp $(OBJS) \
$(CC) -o ../../icomet-server $(CFLAGS) \
icomet-server.cpp $(OBJS) \
../util/*.o \
$(LIBEVENT_PATH)/.libs/libevent.a \
$(CLIBS)
Expand All @@ -18,5 +18,5 @@ server.o: server.h server.cpp
$(CC) -c $(CFLAGS) server.cpp

clean:
rm -f *.o ../../comet-server
rm -f *.o ../../icomet-server

8 changes: 4 additions & 4 deletions src/comet/comet-server.cpp → src/comet/icomet-server.cpp
Expand Up @@ -50,14 +50,14 @@ void check_pidfile();
void remove_pidfile();

void welcome(){
printf("comet-server %s\n", ICOMET_VERSION);
printf("icomet-server %s\n", ICOMET_VERSION);
printf("Copyright (c) 2013-2014 ideawu.com\n");
printf("\n");
}

void usage(int argc, char **argv){
printf("Usage:\n");
printf(" %s [-d] /path/to/comet.conf\n", argv[0]);
printf(" %s [-d] /path/to/icomet.conf\n", argv[0]);
printf("Options:\n");
printf(" -d run as daemon\n");
}
Expand Down Expand Up @@ -293,7 +293,7 @@ int main(int argc, char **argv){
}

write_pidfile();
log_info("icomet started");
log_info("icomet-server started");
event_base_dispatch(evbase);
remove_pidfile();

Expand Down Expand Up @@ -385,7 +385,7 @@ void init(int argc, char **argv){
daemonize();
}

log_info("starting icomet %s...", ICOMET_VERSION);
log_info("starting icomet-server %s...", ICOMET_VERSION);
log_info("config file: %s", conf_file);
log_info("log_level : %s", conf->get_str("logger.level"));
log_info("log_output : %s", log_output.c_str());
Expand Down
2 changes: 1 addition & 1 deletion src/comet/server_config.h
Expand Up @@ -4,7 +4,7 @@
#include <string>
#include "util/config.h"

// initialized in comet-server.cpp
// initialized in icomet-server.cpp
class ServerConfig{
public:
static int max_channels;
Expand Down

0 comments on commit 07182fd

Please sign in to comment.