Chops Net IP
|
Example of 2-way TCP peer to peer network chat program. See usage text for further information. More...
#include <iostream>
#include <cstdlib>
#include <cstddef>
#include <string>
#include <thread>
#include <cassert>
#include "net_ip/net_ip.hpp"
#include "net_ip/net_entity.hpp"
#include "net_ip_component/worker.hpp"
#include "simple_chat_screen.hpp"
#include "queue/wait_queue.hpp"
#include "net_ip/io_type_decls.hpp"
Functions | |
bool | process_args (int argc, char *const argv[], std::string &ip_addr, std::string &port, std::string ¶m, bool &print_errors) |
int | main (int argc, char *argv[]) |
Example of 2-way TCP peer to peer network chat program. See usage text for further information.
Copyright (c) 2019 Thurman Gillespy
Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
Sample compile script: g++ -std=c++17 -g -Wall -Werror \ -I ../include \ -I ../../utility-rack/include/ \ -I ../../utility-rack/third_party/ \ -I ../../asio/asio/include/ \ simple_chat_demo.cpp -lpthread -o chat