summaryrefslogtreecommitdiff
path: root/apps/drwho/SML_Client.cpp
diff options
context:
space:
mode:
authorschmidt <douglascraigschmidt@users.noreply.github.com>1998-09-07 04:49:01 +0000
committerschmidt <douglascraigschmidt@users.noreply.github.com>1998-09-07 04:49:01 +0000
commitdceee5506c4b747d6c3801d3f1649f9305dff2d5 (patch)
treec487fc2eb5a13824b27c6983a5620f90c4442fe8 /apps/drwho/SML_Client.cpp
parent027290ebc37d5dd85440815f3d5840cd83b51b7a (diff)
downloadATCD-dceee5506c4b747d6c3801d3f1649f9305dff2d5.tar.gz
*** empty log message ***
Diffstat (limited to 'apps/drwho/SML_Client.cpp')
-rw-r--r--apps/drwho/SML_Client.cpp35
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__ */