libflint/tests/netmanual.c
Evan Burkey 48f773b3ab
All checks were successful
Test and Deploy / test (push) Successful in 15s
Test and Deploy / docs (push) Successful in 28s
Implement Server (#1)
- Generic Server struct
- TCP and UDP

Reviewed-on: #1
2024-07-09 21:03:23 +00:00

8 lines
199 B
C

#include "lfnetwork.h"
int main(int argc, char **argv) {
Server *server = new_server(SERVERTYPE_TCP, "18632", handler_tcp_echo);
serve(server, DEFAULT_BACKLOG);
delete_server(server);
}