blob: 56b41a304d505686654ce76ab603cddd28944a35 (
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
|
#include "jaws3/IO.h"
#include "SS_State_ERROR.h"
#include "SS_State_DONE.h"
#include "SS_Data.h"
int
TeraSS_State_ERROR::service (JAWS_Event_Completer *ec, void *data)
{
// Send an error message.
TeraSS_Data *tdata = (TeraSS_Data *) data;
tdata->mb ().reset ();
tdata->mb ().copy ("FAIL\r\n", 6);
JAWS_IO::instance ()->send ( tdata->peer ().get_handle ()
, & tdata->mb ()
, ec
);
return 0;
}
JAWS_Protocol_State *
TeraSS_State_ERROR::transition (const JAWS_Event_Result &, void *, void *)
{
// In the ERROR state, always transition to DONE.
return TeraSS_State_DONE::instance ();
}
|