---
name: "ACE_Stream_Type"
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_Stream_Type"
---

# ACE\_Stream\_Type(3)

Define the methods for handling the configuration of ACE\_Streams.

## NAME

ACE\_Stream\_Type -  Define the methods for handling the configuration of ACE\_Streams.

## SYNOPSIS

```
#include <ace/Service_Types.h>
class ACE_Stream_Type : public ACE_Service_Type_Impl
{
  public:
    ACE_Stream_Type (
        void *s,
        const ASYS_TCHAR *identifier,
        u_int flags = 0
        );
    ~ACE_Stream_Type (void);
    virtual int suspend (void) const;
    virtual int resume (void) const;
    virtual int init (int argc, ASYS_TCHAR *argv[]) const;
    virtual int fini (void) const;
    virtual int info (ASYS_TCHAR **str, size_t len) const;
    int push (ACE_Module_Type *new_module);
    int remove (ACE_Module_Type *module);
    ACE_Module_Type *find (const ASYS_TCHAR *mod_name) const;
    void dump (void) const;
    ACE_ALLOC_HOOK_DECLARE;
  private:
    ACE_Module_Type *head_;
};
```

## Initialization method.

```
ACE_Stream_Type (
    void *s,
    const ASYS_TCHAR *identifier,
    u_int flags = 0
    );
```

```
~ACE_Stream_Type (void);
```

\= Implement the hooks for ACE\_Streams.

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

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

```
virtual int init (int argc, ASYS_TCHAR *argv[]) const;
```

```
virtual int fini (void) const;
```

```
virtual int info (ASYS_TCHAR **str, size_t len) const;
```

```
int push (ACE_Module_Type *new_module);
```

Add a new ACE\_Module to the top of the ACE\_Stream.

```
int remove (ACE_Module_Type *module);
```

Search for module and remove it from the ACE\_Stream.

```
ACE_Module_Type *find (const ASYS_TCHAR *mod_name) const;
```

Locate the ACE\_Module with mod\_name.

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

Dump the state of an object.

```
ACE_ALLOC_HOOK_DECLARE;
```

Declare the dynamic allocation hooks.

## AUTHOR

Doug Schmidt

## LIBRARY

ace
