---
name: "ACE_ST_CORBA_Handler"
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_ST_CORBA_Handler"
---

# ACE\_ST\_CORBA\_Handler(3)

Handle single-threaded Orbix requests in conjunction with the ACE\_Reactor.

## NAME

ACE\_ST\_CORBA\_Handler -  Handle single-threaded Orbix requests in conjunction with the ACE\_Reactor.

## SYNOPSIS

```
#include <ace/CORBA_Handler.h>
class ACE_ST_CORBA_Handler : public ACE_CORBA_Handler
{
  public:
    static ACE_CORBA_Handler *instance (void);
    virtual int handle_input (ACE_HANDLE);
    virtual int suspend (void);
    virtual int resume (void);
    size_t iterations (void);
    void iterations (size_t);
    void dump (void) const;
    ACE_ALLOC_HOOK_DECLARE;
  protected:
    void get_orbix_descriptors (void);
    ACE_ST_CORBA_Handler (void);
    virtual ~ACE_ST_CORBA_Handler (void);
    static void insert_handle (ACE_HANDLE);
    static void remove_handle (ACE_HANDLE);
    static void instance_cleaner (void *object, void *param);
    static ACE_ST_CORBA_Handler *instance_;
    size_t iterations_;
    static int set_callbacks_;
    static OrbixIOCallback previous_orbix_open_callback_;
    static OrbixIOCallback previous_orbix_close_callback_;
};
```

## DESCRIPTION

You should NOT use this class unless you've got a VERY old version of Orbix that only supports single-threading.  If you're using a more recent version of Orbix use the ACE\_MT\_CORBA\_Handler.

## Singleton access point.

```
static ACE_CORBA_Handler *instance (void);
```

Returns a Singleton.

## Demuxing hook.

```
virtual int handle_input (ACE_HANDLE);
```

Process the next Orbix event.

## Dynamic linking hooks.

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

Atomically suspend all the threads associated with the thr\_mgr.

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

Atomically resume all the threads associated with the thr\_mgr.

\= Iterations dictate # of processNextEvent calls per-callback.

```
size_t iterations (void);
```

Get the current iteration.

```
void iterations (size_t);
```

Set the current iteration.

```
void dump (void) const;
```

Dump the state of an object.

```
ACE_ALLOC_HOOK_DECLARE;
```

Declare the dynamic allocation hooks.

## AUTHOR

Douglas C. Schmidt (schmidt@cs.wustl.edu) and Irfan Pyarali (irfan@wuerl.wustl.edu).

## LIBRARY

ace
