14 #ifndef ECL_STREAMS_SOCKET_STREAMS_HPP_ 15 #define ECL_STREAMS_SOCKET_STREAMS_HPP_ 24 #include <ecl/config/macros.hpp> 25 #include <ecl/devices/socket.hpp> 26 #include <ecl/exceptions/standard_exception.hpp> 27 #include "text_stream.hpp" 55 SocketClientStream() {};
68 SocketClientStream(
const std::string &host_name,
const unsigned int &port_number)
ecl_throw_decl(StandardException) {
70 if ( !this->device().open(host_name, port_number) ) {
71 error = this->device().error();
78 virtual ~SocketClientStream() {};
100 SocketServerStream() {};
112 SocketServerStream(
const unsigned int &port_number)
throw(StandardException) {
114 this->device().open(port_number);
115 }
catch(StandardException &e) {
116 throw StandardException(
LOC,e);
120 virtual ~SocketServerStream() {};
#define ecl_throw(exception)
Standard ecl throw exception throw.
#define ecl_streams_PUBLIC
#define ecl_throw_decl(exception)
Standard ecl throw exception declaration.
#define LOC
Stringify the line of code you are at.
#define ecl_catch(exception)
The catch part of a try-catch macro matching ecl_throw calls.
#define ecl_try
The try part of a try-catch macro matching ecl_throw calls.