Merge branch 'master' of gitlab.ibr.cs.tu-bs.de:tschuber/netcalc

This commit is contained in:
Tim Schubert 2018-10-29 10:32:57 +01:00
commit 880a77ff65
3 changed files with 11 additions and 0 deletions

1
.gitignore vendored
View file

@ -2,3 +2,4 @@ netcalc
test/results
test/netcalc.pid
.gitconfig
.idea

7
CMakeLists.txt Normal file
View file

@ -0,0 +1,7 @@
cmake_minimum_required(VERSION 3.5)
project(netcalc)
set(CMAKE_C_STANDARD 11)
set(SOURCE_FILES netcalc.c)
add_executable(netcalc ${SOURCE_FILES})

View file

@ -261,6 +261,9 @@ int client() {
return 0;
}
/// The main method, starts depending on the args as client or server
/// @param argc argument count
/// @param argv array of options, -c for client followed by hostname and port
int main(int argc, char *argv[]) {
SOCKFD = 0;
struct sigaction action;