---
name: "ACE_LSOCK"
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_LSOCK"
---

# ACE\_LSOCK(3)

Create a Local ACE\_SOCK, which is used for passing file descriptors.

## NAME

ACE\_LSOCK -  Create a Local ACE\_SOCK, which is used for passing file descriptors.

## SYNOPSIS

```
#include <ace/LSOCK.h>
class ACE_LSOCK
{
  public:
    int send_handle (const ACE_HANDLE handle) const;
    int recv_handle (
        ACE_HANDLE &handles,
        char *pbuf = 0,
        int *len = 0
        ) const;
    void dump (void) const;
    ACE_ALLOC_HOOK_DECLARE;
  protected:
    ACE_LSOCK (void);
    ACE_LSOCK (ACE_HANDLE handle);
    ACE_HANDLE get_handle (void) const;
    void set_handle (ACE_HANDLE handle);
  private:
    ACE_HANDLE aux_handle_;
};
```

## Ensure that ACE\_LSOCK is an abstract base class

```
ACE_LSOCK (void);
```

Default constructor.

```
ACE_LSOCK (ACE_HANDLE handle);
```

Initialize based on handle

```
ACE_HANDLE get_handle (void) const;
```

Get handle.

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

Set handle.

## AUTHOR

Doug Schmidt

## LIBRARY

ace
