Chops Net IP
Loading...
Searching...
No Matches
simple_chat_demo.cpp File Reference

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"
Include dependency graph for simple_chat_demo.cpp:

Functions

bool process_args (int argc, char *const argv[], std::string &ip_addr, std::string &port, std::string &param, bool &print_errors)
 
int main (int argc, char *argv[])
 

Detailed Description

Example of 2-way TCP peer to peer network chat program. See usage text for further information.

Author
Thurman Gillespy

Copyright (c) 2019 Thurman Gillespy

Date
2019-10-14

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