Implement Server #1

Merged
eburk merged 8 commits from tcpsrv into master 2024-07-09 21:03:23 +00:00
2 changed files with 7 additions and 4 deletions
Showing only changes of commit f063bccec7 - Show all commits

View File

@ -14,11 +14,15 @@ jobs:
- name: Install dependencies
run: |
sudo apt-get update
sudo apt-get install -y libbsd-dev build-essential
sudo apt-get install -y libbsd-dev cmake build-essential netcat
- name: Build and test
run: |
make tests
mkdir build
cd build
cmake ..
make
./tests
docs:
runs-on: ubuntu-latest

View File

@ -15,10 +15,10 @@
#include "lfstring.h"
#include "lfcrypto.h"
#include "lfparsing.h"
#include "lfinput.h"
#if defined(__APPLE__) || defined(__MACH__)
#include "lfmacos.h"
#include "lfinput.h"
#endif /* defined(__APPLE__) || defined(__MACH__) */
void print_ll(List *list) {
@ -448,7 +448,6 @@ void test_network() {
pthread_create(&srv_tid, NULL, udp_server_thread, NULL);
sleep(1);
system("echo hello | nc localhost 18633");
assert(strcmp(s, NET_MSG) == 0);
pthread_join(srv_tid, NULL);
printf("Passed UDP test\n");