---
name: "ACE_Svc_Tuple"
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_Svc_Tuple"
---

# ACE\_Svc\_Tuple(3)

Holds the ACE\_Svc\_Handler and its argument and ACE\_Timer\_Handle until an asynchronous connection completes.

## NAME

ACE\_Svc\_Tuple -  Holds the ACE\_Svc\_Handler and its argument and ACE\_Timer\_Handle until an asynchronous connection completes.

## SYNOPSIS

```
#include <ace/Connector.h>
template<class SVC_HANDLER>
class ACE_Svc_Tuple
{
  public:
    ACE_Svc_Tuple (
        SVC_HANDLER *,
        ACE_HANDLE,
        const void * = 0,
        long timer_id = -1
        );
    SVC_HANDLER *svc_handler (void);
    ACE_HANDLE handle (void);
    void handle (ACE_HANDLE);
    const void *arg (void);
    void arg (const void *);
    long cancellation_id (void);
    void cancellation_id (long timer_id);
    void dump (void) const;
    ACE_ALLOC_HOOK_DECLARE;
  private:
    SVC_HANDLER *svc_handler_;
    ACE_HANDLE handle_;
    const void *arg_;
    long cancellation_id_;
};
```

## DESCRIPTION

This is a no-brainer...

## Initialization methods.

```
ACE_Svc_Tuple (
    SVC_HANDLER *,
    ACE_HANDLE,
    const void * = 0,
    long timer_id = -1
    );
```

## Get SVC\_HANDLER.

```
SVC_HANDLER *svc_handler (void);
```

## Get/set handle.

```
ACE_HANDLE handle (void);
```

Get handle.

```
void handle (ACE_HANDLE);
```

Set handle.

## Get/set argument.

```
const void *arg (void);
```

Get argument.

```
void arg (const void *);
```

Set argument.

## Set/get timer cancellation handle.

```
long cancellation_id (void);
```

Get cancellation id.

```
void cancellation_id (long timer_id);
```

Set cancellation id.

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

Dump the state of an object.

```
ACE_ALLOC_HOOK_DECLARE;
```

Declare the dynamic allocation hooks.

## AUTHOR

Doug Schmidt

## LIBRARY

ace
