[Howto] IPv4 TCP communication in C (minimal example)
the server-program sends the string “TestTestTest”. the client-programm receives the string and prints it on terminal. server-program: #include <unistd.h> #include <stdio.h> #include <string.h> #include <sys/socket.h> #include <netinet/in.h> int main(int argc, char *argv[]) { int listenfd = 0; int connfd … Continued