---
name: "ACE_SPIPE_Addr"
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_SPIPE_Addr"
---

# ACE\_SPIPE\_Addr(3)

Defines the SVR4 STREAM pipe address family address format.

## NAME

ACE\_SPIPE\_Addr -  Defines the SVR4 STREAM pipe address family address format.

## SYNOPSIS

```
#include <ace/SPIPE_Addr.h>
class ACE_SPIPE_Addr : public ACE_Addr
{
  public:
    ACE_SPIPE_Addr (void);
    ACE_SPIPE_Addr (const ACE_SPIPE_Addr &sa);
    ACE_SPIPE_Addr (LPCTSTR rendezvous_point, gid_t = 0, uid_t = 0);
    int set (const ACE_SPIPE_Addr &sa);
    int set (LPCTSTR rendezvous_point, gid_t = 0, uid_t = 0);
    virtual void *get_addr (void) const;
    virtual void set_addr (void *addr, int len);
    virtual int addr_to_string (wchar_t *addr, size_t) const;
    virtual int string_to_addr (const wchar_t *addr);
    virtual int addr_to_string (char *addr, size_t) const;
    virtual int string_to_addr (const char *addr);
    int operator == (const ACE_SPIPE_Addr &SAP) const;
    int operator != (const ACE_SPIPE_Addr &SAP) const;
    LPCTSTR get_path_name (void) const;
    uid_t user_id (void) const;
    void user_id (uid_t uid);
    void group_id (gid_t gid);
    gid_t group_id (void) const;
    void dump (void) const;
    ACE_ALLOC_HOOK_DECLARE;
  private:
    SPIPE_Addr SPIPE_addr_;
};
```

## Initialization methods.

```
ACE_SPIPE_Addr (void);
```

Default constructor.

```
ACE_SPIPE_Addr (const ACE_SPIPE_Addr &sa);
```

Copy constructor.

```
ACE_SPIPE_Addr (LPCTSTR rendezvous_point, gid_t = 0, uid_t = 0);
```

Create a ACE\_SPIPE\_Addr from a rendezvous point in the file system.

```
int set (const ACE_SPIPE_Addr &sa);
```

Acts like a copy constructor...

```
int set (LPCTSTR rendezvous_point, gid_t = 0, uid_t = 0);
```

Create a ACE\_SPIPE\_Addr from a rendezvous point in the file system.

```
virtual void *get_addr (void) const;
```

Return a pointer to the address.

```
virtual void set_addr (void *addr, int len);
```

Set a pointer to the underlying network address.

```
virtual int addr_to_string (wchar_t *addr, size_t) const;
```

Transform the current address into string format.

```
virtual int string_to_addr (const wchar_t *addr);
```

Transform the string into the current addressing format.

```
virtual int addr_to_string (char *addr, size_t) const;
```

Transform the current address into string format.

```
virtual int string_to_addr (const char *addr);
```

Transform the string into the current addressing format.

## Equality/inequality tests

```
int operator == (const ACE_SPIPE_Addr &SAP) const;
```

Check for equality.

```
int operator != (const ACE_SPIPE_Addr &SAP) const;
```

Check for inequality

## SPIPE-specific address operations

```
LPCTSTR get_path_name (void) const;
```

Pathname of rendezvous point in file system.

```
uid_t user_id (void) const;
```

Get user id.

```
void user_id (uid_t uid);
```

Set user id.

```
void group_id (gid_t gid);
```

Set group ids.

```
gid_t group_id (void) const;
```

Get group ids.

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

Dump the state of an object.

```
ACE_ALLOC_HOOK_DECLARE;
```

Declare the dynamic allocation hooks.

## AUTHOR

Doug Schmidt

## LIBRARY

ace
