diff --git a/code/nel/samples/net/chat/CMakeLists.txt b/code/nel/samples/net/chat/CMakeLists.txt index b5c66d67c..458c0e7b8 100644 --- a/code/nel/samples/net/chat/CMakeLists.txt +++ b/code/nel/samples/net/chat/CMakeLists.txt @@ -2,7 +2,7 @@ ADD_EXECUTABLE(nl_sample_chatclient client.cpp kbhit.cpp kbhit.h) ADD_EXECUTABLE(nl_sample_chatserver WIN32 server.cpp) -ADD_DEFINITIONS(-DCHAT_DIR="\\"${NL_SHARE_ABSOLUTE_PREFIX}/nl_sample_chat/\\"") +ADD_DEFINITIONS(-DCHAT_DIR="${NL_SHARE_ABSOLUTE_PREFIX}/nl_sample_chat/") TARGET_LINK_LIBRARIES(nl_sample_chatclient nelmisc nelnet) NL_DEFAULT_PROPS(nl_sample_chatclient "NeL, Samples, Net, Chat: Chat Client") diff --git a/code/nel/samples/net/chat/chat_service.cfg b/code/nel/samples/net/chat/chat_service.cfg index 7cd4c35d5..298a9b375 100644 --- a/code/nel/samples/net/chat/chat_service.cfg +++ b/code/nel/samples/net/chat/chat_service.cfg @@ -1,4 +1,4 @@ -//NSHost = "localhost"; +NSHost = "localhost"; DontUseNS = 1; DontUseAES = 1; - +ServerPort = "3333"; diff --git a/code/nel/samples/net/chat/client.cpp b/code/nel/samples/net/chat/client.cpp index 4408e5bbc..bb1a45294 100644 --- a/code/nel/samples/net/chat/client.cpp +++ b/code/nel/samples/net/chat/client.cpp @@ -61,7 +61,7 @@ using namespace NLNET; #endif #ifndef CHAT_DIR -# define CHAT_DIR "." +# define CHAT_DIR "" #endif string CurrentEditString; diff --git a/code/nel/samples/net/chat/server.cpp b/code/nel/samples/net/chat/server.cpp index 9b85b65e5..6a83baba6 100644 --- a/code/nel/samples/net/chat/server.cpp +++ b/code/nel/samples/net/chat/server.cpp @@ -71,6 +71,7 @@ void clientSentChat (CMessage &msgin, TSockId from, CCallbackNetBase &netbase) // Called when a client sent a CHAT message string text; msgin.serial(text); + nldebug("%s", text.c_str()); CMessage msgout; msgout.setType("CHAT"); msgout.serial(text);