diff options
Diffstat (limited to 'apps/drwho/SML_Client.cpp')
-rw-r--r-- | apps/drwho/SML_Client.cpp | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/apps/drwho/SML_Client.cpp b/apps/drwho/SML_Client.cpp new file mode 100644 index 00000000000..b097064e156 --- /dev/null +++ b/apps/drwho/SML_Client.cpp @@ -0,0 +1,35 @@ +// $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; +} + +#ifndef __OPTIMIZE__ +SML_Client::SML_Client (void) +{} + +SML_Client::~SML_Client (void) +{} +#endif /* __OPTIMIZE__ */ |