|
inlib
1.2.0
|
Namespaces | |
| namespace | protocol |
Classes | |
| class | data_client |
Functions | |
| bool | send_sg (inlib::wall::data_client &a_dc, inlib::sg::node &a_node, const std::string &a_options) |
| bool inlib::wall::send_sg | ( | inlib::wall::data_client & | a_dc, |
| inlib::sg::node & | a_node, | ||
| const std::string & | a_options | ||
| ) | [inline] |
Definition at line 13 of file send_sg.
{
//a_options are treated in ioda/open_file.
if(!a_dc.socket().is_connected()) return false;
inlib::sg::write_exsg action(a_dc.out());
if(!action.open_buffer()) return false;
if(!a_node.write(action)) return false;
if(!action.close_buffer()) return false;
if(!a_dc.send_buffer_doc
(action.buffer().length(),action.buffer().buf(),
a_options)) return false;
return true;
}
1.7.5.1