creaImageIO_lib
creaImageIO::PACSConnection Class Reference

#include <creaImageIOPACSConnection.h>

Public Member Functions

 PACSConnection (std::string command)
 Ctor. More...
 

Detailed Description

Definition at line 35 of file creaImageIOPACSConnection.h.

Constructor & Destructor Documentation

creaImageIO::PACSConnection::PACSConnection ( std::string  command)

Ctor.

Definition at line 40 of file creaImageIOPACSConnection.cpp.

41  {
42  /*
43  try
44  {
45 
46  boost::asio::io_service io_service;
47 
48  tcp::resolver resolver(io_service);
49  tcp::resolver::query query(tcp::v4(), "localhost", "3306");
50  tcp::resolver::iterator iterator = resolver.resolve(query);
51 
52  tcp::socket s(io_service);
53  s.connect(*iterator);
54 
55  size_t request_length = strlen(command.c_str());
56  boost::asio::write(s, boost::asio::buffer(command.c_str(), request_length));
57 
58  char reply[max_length];
59  size_t reply_length = boost::asio::read(s,
60  boost::asio::buffer(reply, request_length));
61  std::cout << "Reply is: ";
62  std::cout.write(reply, reply_length);
63  std::cout << "\n";
64  }
65  catch (std::exception& e)
66  {
67  std::cerr << "Exception: " << e.what() << "\n";
68  }
69  */
70  }

The documentation for this class was generated from the following files: