diff options
Diffstat (limited to 'ACE/apps/drwho/SML_Client.cpp')
-rw-r--r-- | ACE/apps/drwho/SML_Client.cpp | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/ACE/apps/drwho/SML_Client.cpp b/ACE/apps/drwho/SML_Client.cpp new file mode 100644 index 00000000000..8ae0195e1a6 --- /dev/null +++ b/ACE/apps/drwho/SML_Client.cpp @@ -0,0 +1,36 @@ +// $Id$ + +#include "Options.h" +#include "SML_Client.h" + +int +SML_Client::receive (int) +{ + if (sml_server.mux (this->recv_packet_, this->packet_length) < 0) + return -1; + + if (this->demux (this->recv_packet_, this->packet_length) < 0) + return -1; + + return 1; +} + +int +SML_Client::send (void) +{ + if (this->mux (this->send_packet_, this->packet_length) < 0) + return -1; + + if (sml_server.demux (this->send_packet_, this->packet_length) < 0) + return -1; + + return 1; +} + +SML_Client::SML_Client (void) +{ +} + +SML_Client::~SML_Client (void) +{ +} |