summaryrefslogtreecommitdiff
path: root/apps/drwho/SML_Client.cpp
blob: 8ae0195e1a622adc0b12f8908c23bf08af17f4f3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
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)
{
}