---
name: "ACE_TLI"
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_TLI"
---

# ACE\_TLI(3)

Defines the member functions for the base class of the ACE\_TLI abstraction.

## NAME

ACE\_TLI -  Defines the member functions for the base class of the ACE\_TLI  abstraction.

## SYNOPSIS

```
#include <ace/TLI.h>
class ACE_TLI : public ACE_IPC_SAP
{
  public:
    ACE_HANDLE open (
        const char device[],
        int oflag = O_RDWR,
        struct t_info *info = 0
        );
    int close (void);
    int set_option (int level, int option, void *optval, int optlen);
    int get_option (int level, int option, void *optval, int &optlen);
    int look (void) const;
    int rcvdis (struct t_discon * = 0) const;
    int snddis (struct t_call * = 0) const;
    int sndrel (void) const;
    int rcvrel (void) const;
    int get_local_addr (ACE_Addr &) const;
    void dump (void) const;
    ACE_ALLOC_HOOK_DECLARE;
  protected:
    ACE_TLI (void);
    ~ACE_TLI (void);
    ACE_TLI (
        const char device[],
        int oflag = O_RDWR,
        struct t_info *info = 0
        );
};
```

## Initialization and termination methods.

```
ACE_HANDLE open (
    const char device[],
    int oflag = O_RDWR,
    struct t_info *info = 0
    );
```

Initialize a TLI endpoint.

```
int close (void);
```

Close a TLI endpoint and release resources.

```
int set_option (int level, int option, void *optval, int optlen);
```

Set underlying protocol options.

```
int get_option (int level, int option, void *optval, int &optlen);
```

Get underlying protocol options.

## Calls to underlying TLI operations.

```
int look (void) const;
```

```
int rcvdis (struct t_discon * = 0) const;
```

```
int snddis (struct t_call * = 0) const;
```

```
int sndrel (void) const;
```

```
int rcvrel (void) const;
```

```
int get_local_addr (ACE_Addr &) const;
```

Return our local endpoint address.

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

Dump the state of an object.

```
ACE_ALLOC_HOOK_DECLARE;
```

Declare the dynamic allocation hooks.

## Ensure we are an abstract class.

```
ACE_TLI (void);
```

Default constructor.

```
~ACE_TLI (void);
```

Destructor.

```
ACE_TLI (
    const char device[],
    int oflag = O_RDWR,
    struct t_info *info = 0
    );
```

Initialize a TLI endpoint.

## AUTHOR

Doug Schmidt

## LIBRARY

ace
