SEND()

these functions are used to send & receive data w/ a socket

    // 5. send() - Send data to the client
    const char *message = "Hello, Client!";
    if (send(client_socket, message, strlen(message), 0) < 0) {
        perror("send");
    }

Last updated