---
name: "ACE_Service_Object"
section: "3"
platform: "linux"
package: "libace-doc"
version: "5.0.7-4"
release: "Debian 2.2 (Potato)"
platforms: ["linux"]
url: "https://new.carta.tech/ACE_Service_Object"
---

# ACE\_Service\_Object(3)

Provide the abstract base class common to all service implementations.

## NAME

ACE\_Service\_Object -  Provide the abstract base class common to all service implementations.

## SYNOPSIS

```
#include <ace/Service_Object.h>
class ACE_Service_Object :
  public ACE_Event_Handler,
  public ACE_Shared_Object
{
  public:
    ACE_Service_Object (ACE_Reactor * = 0);
    virtual ~ACE_Service_Object (void);
    virtual int suspend (void);
    virtual int resume (void);
};
```

## DESCRIPTION

Classes that inherit from ACE\_Service\_Objects are capable of being registered with the ACE\_Reactor (due to the ACE\_Event\_Handler, as well as being dynamically linked by the ACE\_Service\_Config (due to the ACE\_Shared\_Object).

## Initialization and termination methods.

```
ACE_Service_Object (ACE_Reactor * = 0);
```

Constructor.

```
virtual ~ACE_Service_Object (void);
```

Destructor.

```
virtual int suspend (void);
```

Temporarily disable a service without removing it completely.

```
virtual int resume (void);
```

Re-enable a previously suspended service.

## AUTHOR

Doug Schmidt

## LIBRARY

ace
