mirror of
https://github.com/hmaxnl/netex.git
synced 2025-01-18 15:34:20 +01:00
Updated project
This commit is contained in:
parent
b020bcaa4e
commit
f84629ca42
|
@ -1,6 +1,6 @@
|
|||
cmake_minimum_required(VERSION 3.15)
|
||||
|
||||
project(ctest LANGUAGES C)
|
||||
project(cexp LANGUAGES C)
|
||||
|
||||
add_compile_options(-pthread)
|
||||
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
|
||||
add_executable(ctest
|
||||
add_executable(cexp
|
||||
"main.c"
|
||||
"sockets.h")
|
||||
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
|
||||
target_sources(ctest PRIVATE
|
||||
target_sources(cexp PRIVATE
|
||||
"client.c"
|
||||
"sock_helper.c"
|
||||
"server.c"
|
||||
|
|
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue
Block a user