blob: f4d46e59bfe6d15f1f247bd79204d63c91777618 (
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
|
#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)
{
}
|