~ubuntu-branches/ubuntu/breezy/ace/breezy

« back to all changes in this revision

Viewing changes to apps/JAWS3/small/SS_State_ERROR.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Adam Conrad, Benjamin Montgomery, Adam Conrad
  • Date: 2005-09-18 22:51:38 UTC
  • mfrom: (1.2.1 upstream) (2.1.1 sarge) (0.1.2 woody)
  • Revision ID: james.westby@ubuntu.com-20050918225138-seav22q6fyylb536
Tags: 5.4.7-3ubuntu1
[ Benjamin Montgomery ]
* Added a patch for amd64 and powerpc that disables the compiler
  option -fvisibility-inlines-hidden

[ Adam Conrad ]
* Added DPATCH_OPTION_CPP=1 to debian/patches/00options to make
  Benjamin's above changes work correctly with dpatch.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
// SS_State_ERROR.cpp,v 1.1 2003/08/25 07:43:45 kobica Exp
2
 
 
3
 
#include "ace/OS.h"
4
 
#include "jaws3/IO.h"
5
 
 
6
 
#include "SS_State_ERROR.h"
7
 
#include "SS_State_DONE.h"
8
 
#include "SS_Data.h"
9
 
 
10
 
int
11
 
TeraSS_State_ERROR::service (JAWS_Event_Completer *ec, void *data)
12
 
{
13
 
  // Send an error message.
14
 
  TeraSS_Data *tdata = (TeraSS_Data *) data;
15
 
 
16
 
  tdata->mb ().reset ();
17
 
  tdata->mb ().copy ("FAIL\r\n", 6);
18
 
 
19
 
  JAWS_IO::instance ()->send ( tdata->peer ().get_handle ()
20
 
                             , & tdata->mb ()
21
 
                             , ec
22
 
                             );
23
 
 
24
 
  return 0;
25
 
}
26
 
 
27
 
JAWS_Protocol_State *
28
 
TeraSS_State_ERROR::transition (const JAWS_Event_Result &, void *, void *)
29
 
{
30
 
  // In the ERROR state, always transition to DONE.
31
 
 
32
 
  return TeraSS_State_DONE::instance ();
33
 
}
34