Updated project

This commit is contained in:
Max 2022-12-10 22:46:56 +01:00
parent b020bcaa4e
commit f84629ca42
4 changed files with 4 additions and 7 deletions

View File

@ -1,6 +1,6 @@
cmake_minimum_required(VERSION 3.15)
project(ctest LANGUAGES C)
project(cexp LANGUAGES C)
add_compile_options(-pthread)

View File

@ -1,5 +1,5 @@
add_executable(ctest
add_executable(cexp
"main.c"
"sockets.h")

View File

@ -1,5 +1,5 @@
target_sources(ctest PRIVATE
target_sources(cexp PRIVATE
"client.c"
"sock_helper.c"
"server.c"

View File

@ -16,10 +16,7 @@ void* thread_client_handler(void* arg);
int start_server()
{
// Set up data struct that will be send to the client.
//char sName[11] = "Server net";
//strcpy(server_data.sName, sName);
printf(" _____ \n / ____| \n | | _____ ___ __ \n | | / _ \ \/ / '_ \ \n | |___| __/> <| |_) |\n \_____\___/_/\_\ .__/ \n | | \n |_| \n");
server_sockfd = socket(AF_INET, SOCK_STREAM, 0);
if (server_sockfd < 0)
{