Browse Source

Server config

0.2
Pedro Berrocal 5 years ago
parent
commit
6718bf9e77
3 changed files with 41 additions and 3 deletions
  1. +2
    -2
      README.md
  2. +1
    -1
      src/MWServer.cpp
  3. +38
    -0
      src/config.server

+ 2
- 2
README.md View File

@ -24,7 +24,7 @@ slice2cpp Printer.ice
### Compile & link
```
c++ -I. -DICE_CPP11_MAPPING -c MW.cpp MWServer.cpp MWMap.cpp -std=c++11 -lIce++11 -pthread
c++ -o server Printer.o Server.o -lIce++11 -pthread -std=c++11
c++ -I. -DICE_CPP11_MAPPING -c MW.cpp MWServer.cpp MWMap.cpp MWSession.o -lGlacier2++11 -std=c++11 -lIce++11 -pthread
c++ -o server MW.o MWServer.o MWMap.o MWSessionI.o -std=c++11 -lIce++11 -lGlacier2++11 -pthread
```

+ 1
- 1
src/MWServer.cpp View File

@ -30,7 +30,7 @@ main(int argc, char* argv[])
try
{
Ice::CtrlCHandler ctrlCHandler;
Ice::CommunicatorHolder ich(argc, argv, "config.server");
Ice::CommunicatorHolder ich(argc, argv, "config.mwserver");
auto communicator = ich.communicator();


+ 38
- 0
src/config.server View File

@ -0,0 +1,38 @@
#
# The endpoint of the session server's object adapter. This should be
# an endpoint on an internal network (like 192.168.x.x), or on the
# loopback, so that the session server is not directly accessible from
# the Internet.
#
ChatServer.Endpoints=tcp -h localhost -p 10001
#
# Warn about connection exceptions
#
Ice.Warn.Connections=1
#
# Network Tracing
#
# 0 = no network tracing
# 1 = trace connection establishment and closure
# 2 = like 1, but more detailed
# 3 = like 2, but also trace data transfer
#
#Ice.Trace.Network=1
#
# Protocol Tracing
#
# 0 = no protocol tracing
# 1 = trace protocol messages
#
#Ice.Trace.Protocol=1
#
# IceMX configuration.
#
#Ice.Admin.Endpoints=tcp -h localhost -p 10002
Ice.Admin.InstanceName=server
IceMX.Metrics.Debug.GroupBy=id
IceMX.Metrics.ByParent.GroupBy=parent

Loading…
Cancel
Save