-4

I need to be able to send an std::string over a LAN network. In my case I have a mac, and a PC that I would like to be able to make communicate. I have taken a look around the web, but haven't had much lucky in terms of solution for my case. Any ideas how I could set up a network through c++ so these computers can share text?

24GHz
  • 80
  • 1
  • 15

1 Answers1

1

The boost asio library provides a robust framework for doing network communication through sockets. Examples using C++11 can be found here: http://www.boost.org/doc/libs/1_58_0/doc/html/boost_asio/examples/cpp11_examples.html

The chat client/ server examples may be of particular interest to you.

Christian Blume
  • 188
  • 1
  • 9
  • Thanks for the help. I haven't tried any of the examples yet, but it should give me a start. – 24GHz Jun 05 '15 at 03:08