---
name: "ACE_Thru_Task"
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_Thru_Task"
---

# ACE\_Thru\_Task(3)

Standard module that acts as a "no op", simply passing on all data to its adjacent neighbor.

## NAME

ACE\_Thru\_Task -  Standard module that acts as a "no op", simply passing on all data to its adjacent neighbor.

## SYNOPSIS

```
#include <ace/Stream_Modules.h>
template<ACE_SYNCH_DECL>
class ACE_Thru_Task : public ACE_Task<ACE_SYNCH_USE>
{
  public:
    ACE_Thru_Task (void);
    ~ACE_Thru_Task (void);
    virtual int open (void *a = 0);
    virtual int close (u_long flags = 0);
    virtual int put (ACE_Message_Block *msg, ACE_Time_Value * = 0);
    virtual int svc (void);
    virtual int init (int argc, ASYS_TCHAR *argv[]);
    virtual int info (ASYS_TCHAR **info_string, size_t length) const;
    virtual int fini (void);
    void dump (void) const;
    ACE_ALLOC_HOOK_DECLARE;
};
```

## ACE\_Task hooks

```
virtual int open (void *a = 0);
```

```
virtual int close (u_long flags = 0);
```

```
virtual int put (ACE_Message_Block *msg, ACE_Time_Value * = 0);
```

```
virtual int svc (void);
```

## Dynamic linking hooks

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

```
virtual int info (ASYS_TCHAR **info_string, size_t length) const;
```

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

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

Dump the state of an object.

```
ACE_ALLOC_HOOK_DECLARE;
```

Declare the dynamic allocation hooks.

## AUTHOR

Doug Schmidt

## LIBRARY

ace
