Merge branch 'master' of gitlab.ibr.cs.tu-bs.de:tschuber/netcalc
This commit is contained in:
commit
880a77ff65
3 changed files with 11 additions and 0 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -2,3 +2,4 @@ netcalc
|
||||||
test/results
|
test/results
|
||||||
test/netcalc.pid
|
test/netcalc.pid
|
||||||
.gitconfig
|
.gitconfig
|
||||||
|
.idea
|
7
CMakeLists.txt
Normal file
7
CMakeLists.txt
Normal 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})
|
|
@ -261,6 +261,9 @@ int client() {
|
||||||
return 0;
|
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[]) {
|
int main(int argc, char *argv[]) {
|
||||||
SOCKFD = 0;
|
SOCKFD = 0;
|
||||||
struct sigaction action;
|
struct sigaction action;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue