mirror of
https://github.com/hmaxnl/netex.git
synced 2025-01-18 07:24:21 +01:00
Made project buildable, added info in 'readme.md'. Small code changes
This commit is contained in:
parent
c0fe13476e
commit
4850ee2c86
0
.gitignore
vendored
Normal file → Executable file
0
.gitignore
vendored
Normal file → Executable file
0
CMakeLists.txt
Normal file → Executable file
0
CMakeLists.txt
Normal file → Executable file
5
readme.md
Normal file → Executable file
5
readme.md
Normal file → Executable file
|
@ -4,7 +4,7 @@ Small server & client project for linux.
|
|||
## Contains
|
||||
- [x] Unix sockets
|
||||
- [ ] Multithreading (pthreads)
|
||||
- [ ] Configuration (JSON format)
|
||||
- [x] Configuration (JSON format)
|
||||
- [ ] Secure connection (OpenSSL)
|
||||
- [ ] Encryption (OpenSSL)
|
||||
|
||||
|
@ -14,5 +14,6 @@ Small server & client project for linux.
|
|||
- Make
|
||||
|
||||
## Dependencies
|
||||
- JSON-C
|
||||
- JSON-C (json-c-devel)
|
||||
- Curses (ncurses-devel)
|
||||
- OpenSSL
|
||||
|
|
0
src/CMakeLists.txt
Normal file → Executable file
0
src/CMakeLists.txt
Normal file → Executable file
0
src/client/CMakeLists.txt
Normal file → Executable file
0
src/client/CMakeLists.txt
Normal file → Executable file
0
src/client/main.c
Normal file → Executable file
0
src/client/main.c
Normal file → Executable file
0
src/net/CMakeLists.txt
Normal file → Executable file
0
src/net/CMakeLists.txt
Normal file → Executable file
2
src/net/configuration.c
Normal file → Executable file
2
src/net/configuration.c
Normal file → Executable file
|
@ -108,7 +108,7 @@ int config_save_to_path(const CONFIGURATION* config, const char* path)
|
|||
if (write_result <= 0)
|
||||
{
|
||||
const int wr_error = errno;
|
||||
WARN("Error occured while writing file '%s' to disk, error code: %i", path, wr_error);
|
||||
WARN("Error occurred while writing file '%s' to disk, error code: %i", path, wr_error);
|
||||
return wr_error;
|
||||
}
|
||||
return 0;
|
||||
|
|
0
src/net/include/CMakeLists.txt
Normal file → Executable file
0
src/net/include/CMakeLists.txt
Normal file → Executable file
0
src/net/include/config.h
Normal file → Executable file
0
src/net/include/config.h
Normal file → Executable file
0
src/net/include/log.h
Normal file → Executable file
0
src/net/include/log.h
Normal file → Executable file
0
src/net/include/net.h
Normal file → Executable file
0
src/net/include/net.h
Normal file → Executable file
1
src/net/include/netex.h
Normal file → Executable file
1
src/net/include/netex.h
Normal file → Executable file
|
@ -2,6 +2,7 @@
|
|||
#define NETEX_H
|
||||
|
||||
#include <stdio.h>
|
||||
#include <curses.h>
|
||||
|
||||
#define PRINT(msg, args...) printw(msg, ##args); refresh()
|
||||
#define PRINT_LINE(msg, args...) printw(msg "\n", ##args); refresh()
|
||||
|
|
0
src/net/include/nx_curses.h
Normal file → Executable file
0
src/net/include/nx_curses.h
Normal file → Executable file
0
src/net/include/sockets.h
Normal file → Executable file
0
src/net/include/sockets.h
Normal file → Executable file
0
src/net/include/strutil.h
Normal file → Executable file
0
src/net/include/strutil.h
Normal file → Executable file
0
src/net/logging/CMakeLists.txt
Normal file → Executable file
0
src/net/logging/CMakeLists.txt
Normal file → Executable file
0
src/net/logging/log.c
Normal file → Executable file
0
src/net/logging/log.c
Normal file → Executable file
0
src/net/netex.c
Normal file → Executable file
0
src/net/netex.c
Normal file → Executable file
0
src/net/old/CMakeLists.txt
Normal file → Executable file
0
src/net/old/CMakeLists.txt
Normal file → Executable file
0
src/net/old/client.c
Normal file → Executable file
0
src/net/old/client.c
Normal file → Executable file
0
src/net/old/communication.h
Normal file → Executable file
0
src/net/old/communication.h
Normal file → Executable file
0
src/net/old/exp_list.c
Normal file → Executable file
0
src/net/old/exp_list.c
Normal file → Executable file
0
src/net/old/list.h
Normal file → Executable file
0
src/net/old/list.h
Normal file → Executable file
0
src/net/old/main.c
Normal file → Executable file
0
src/net/old/main.c
Normal file → Executable file
0
src/net/old/server.c
Normal file → Executable file
0
src/net/old/server.c
Normal file → Executable file
0
src/net/old/sock_helper.c
Normal file → Executable file
0
src/net/old/sock_helper.c
Normal file → Executable file
0
src/net/old/thread_manager.c
Normal file → Executable file
0
src/net/old/thread_manager.c
Normal file → Executable file
0
src/net/old/thread_manager.h
Normal file → Executable file
0
src/net/old/thread_manager.h
Normal file → Executable file
0
src/net/str/CMakeLists.txt
Normal file → Executable file
0
src/net/str/CMakeLists.txt
Normal file → Executable file
0
src/net/str/str_utils.c
Normal file → Executable file
0
src/net/str/str_utils.c
Normal file → Executable file
0
src/net/tui/CMakeLists.txt
Normal file → Executable file
0
src/net/tui/CMakeLists.txt
Normal file → Executable file
0
src/net/tui/nx_curses.c
Normal file → Executable file
0
src/net/tui/nx_curses.c
Normal file → Executable file
0
src/server/CMakeLists.txt
Normal file → Executable file
0
src/server/CMakeLists.txt
Normal file → Executable file
0
src/server/main.c
Normal file → Executable file
0
src/server/main.c
Normal file → Executable file
3
src/server/server.c
Normal file → Executable file
3
src/server/server.c
Normal file → Executable file
|
@ -1,7 +1,6 @@
|
|||
#include "server.h"
|
||||
|
||||
#include <errno.h>
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <sys/socket.h>
|
||||
#include <netinet/in.h>
|
||||
|
@ -72,7 +71,7 @@ int server_execute(void)
|
|||
int listen_thread_result;
|
||||
const int join_result = pthread_join(listen_thread, (void**)&listen_thread_result);
|
||||
if (join_result == 0)
|
||||
WARN("Listen thread has exited with erros!");
|
||||
WARN("Listen thread has exited with errors!");
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
0
src/server/server.h
Normal file → Executable file
0
src/server/server.h
Normal file → Executable file
0
src/server/srv_ui.c
Normal file → Executable file
0
src/server/srv_ui.c
Normal file → Executable file
Loading…
Reference in New Issue
Block a user