#include <stream_service.hpp>
Public Member Functions | |
server (session const &s, saga::url url=saga::url()) | |
Creates a new stream_service object. | |
server (saga::url url) | |
Creates a new stream_service object. | |
server () | |
Creates a new stream_service object. | |
server (saga::object const &o) | |
Creates a new stream_service object. | |
~server (void) | |
Destructor for stream_service object. | |
server & | operator= (saga::object const &o) |
Brief description starts here. | |
saga::url | get_url () const |
Get the URL to be used to connect to this server. | |
saga::stream::stream | serve (double timeout=0.0) |
Wait for incoming client connections. | |
void | close (double timeout=0.0) |
Closes this stream service. | |
Static Public Member Functions | |
static server | create (session const &s, saga::url name=saga::url()) |
Factory function resembling server(session, url) constructor. | |
static server | create (saga::url name=saga::url()) |
Factory function resembling server(url) constructor. | |
template<typename Tag> | |
static saga::task | create (saga::url name=saga::url()) |
It can only be used as a factory for client sockets. It doesnŐt do any read/write I/O.
Creates a new stream_service object.
saga::stream::server::server | ( | void | ) |
Creates a new stream_service object.
saga::stream::server::server | ( | saga::object const & | o | ) | [explicit] |
Creates a new stream_service object.
saga::stream::server::~server | ( | void | ) |
Destructor for stream_service object.
static server saga::stream::server::create | ( | session const & | s, | |
saga::url | name = saga::url() | |||
) | [inline, static] |
Factory function resembling server(session, url) constructor.
Factory function resembling server(url) constructor.
static saga::task saga::stream::server::create | ( | saga::url | name = saga::url() |
) | [inline, static] |
server & saga::stream::server::operator= | ( | saga::object const & | o | ) |
Brief description starts here.
saga::url saga::stream::server::get_url | ( | ) | const [inline] |
Get the URL to be used to connect to this server.
saga::stream::stream saga::stream::server::serve | ( | double | timeout = 0.0 |
) | [inline] |
void saga::stream::server::close | ( | double | timeout = 0.0 |
) | [inline] |
Closes this stream service.