// This example shows how to use the TCP server. It listens at given port,
// receives one message and sends one message.

#include <memory>
#include <iostream>

#include <gflags/gflags.h>
#include "c24/communication/stream.h"
#include "c24/communication/stream_tcp_server.h"
#include "c24/communication/stream_backend_interface.h"

using c24::communication::StreamBackendInterface;
using c24::communication::StreamTcpServer;
using c24::communication::Stream;

DEFINE_int32(port, 5500,
             "Define port number where do you want to listen for connection.");

int main(int argc, char** argv) {
  google::InitGoogleLogging(*argv);
  google::ParseCommandLineFlags(&argc, &argv, true);
  Stream stream = Stream(std::unique_ptr<StreamBackendInterface>(
      new StreamTcpServer(FLAGS_port)));
  std::cout << stream.GetMessage() << std::endl;
  stream.SendMessage("HELLO CLIENT");

  return 0;
}

// This example shows how to use the TCP server. It listens at given port,
// receives one message and sends one message.

#include <memory>
#include <iostream>

#include <gflags/gflags.h>
#include <glog/logging.h>
#include "c24/communication/stream.h"
#include "c24/communication/stream_tcp_server.h"
#include "c24/communication/stream_backend_interface.h"

using c24::communication::StreamBackendInterface;
using c24::communication::StreamTcpServer;
using c24::communication::Stream;

DEFINE_int32(port, 5500,
             "Define port number where do you want to listen for connection.");

int main(int argc, char** argv) {
  google::InitGoogleLogging(*argv);
  google::ParseCommandLineFlags(&argc, &argv, true);
  Stream stream = Stream(std::unique_ptr<StreamBackendInterface>(
      new StreamTcpServer(FLAGS_port)));
  std::cout << stream.GetMessage() << std::endl;
  stream.SendMessage("HELLO CLIENT");

  return 0;
}

Add missing include to tcp server example.
Add missing include to tcp server example.
