Cleanup ACE_HAS_PTHREAD_SIGMASK_PROTOTYPE, all platforms support it so far as I can...
[ACE_TAO.git] / ACE / apps / JAWS3 / small / SS_State_ERROR.cpp
blob56b41a304d505686654ce76ab603cddd28944a35
1 #include "jaws3/IO.h"
3 #include "SS_State_ERROR.h"
4 #include "SS_State_DONE.h"
5 #include "SS_Data.h"
7 int
8 TeraSS_State_ERROR::service (JAWS_Event_Completer *ec, void *data)
10 // Send an error message.
11 TeraSS_Data *tdata = (TeraSS_Data *) data;
13 tdata->mb ().reset ();
14 tdata->mb ().copy ("FAIL\r\n", 6);
16 JAWS_IO::instance ()->send ( tdata->peer ().get_handle ()
17 , & tdata->mb ()
18 , ec
21 return 0;
24 JAWS_Protocol_State *
25 TeraSS_State_ERROR::transition (const JAWS_Event_Result &, void *, void *)
27 // In the ERROR state, always transition to DONE.
29 return TeraSS_State_DONE::instance ();