diff options
author | schmidt <douglascraigschmidt@users.noreply.github.com> | 1998-09-07 04:49:01 +0000 |
---|---|---|
committer | schmidt <douglascraigschmidt@users.noreply.github.com> | 1998-09-07 04:49:01 +0000 |
commit | dceee5506c4b747d6c3801d3f1649f9305dff2d5 (patch) | |
tree | c487fc2eb5a13824b27c6983a5620f90c4442fe8 /apps/drwho/SML_Client.cpp | |
parent | 027290ebc37d5dd85440815f3d5840cd83b51b7a (diff) | |
download | ATCD-dceee5506c4b747d6c3801d3f1649f9305dff2d5.tar.gz |
*** empty log message ***
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__ */ |