Public Member Functions

creaImageIO::PACSConnection Class Reference

#include <creaImageIOPACSConnection.h>

List of all members.

Public Member Functions

 PACSConnection (std::string command)
 Ctor.

Detailed Description

Definition at line 7 of file creaImageIOPACSConnection.h.


Constructor & Destructor Documentation

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

Ctor.

Definition at line 14 of file creaImageIOPACSConnection.cpp.

        {
        /*
        try
        {

                boost::asio::io_service io_service;

                tcp::resolver resolver(io_service);
                tcp::resolver::query query(tcp::v4(), "localhost", "3306");
                tcp::resolver::iterator iterator = resolver.resolve(query);

                tcp::socket s(io_service);
                s.connect(*iterator);

                size_t request_length = strlen(command.c_str());
                boost::asio::write(s, boost::asio::buffer(command.c_str(), request_length));

                char reply[max_length];
                size_t reply_length = boost::asio::read(s,
                        boost::asio::buffer(reply, request_length));
                std::cout << "Reply is: ";
                std::cout.write(reply, reply_length);
                std::cout << "\n";
        }
        catch (std::exception& e)
        {
                std::cerr << "Exception: " << e.what() << "\n";
        }
        */
        }


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