---
name: "ACE_UPIPE_Acceptor"
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_UPIPE_Acceptor"
---

# ACE\_UPIPE\_Acceptor(3)

Defines the format and interface for the listener side of the ACE\_UPIPE\_Stream.

## NAME

ACE\_UPIPE\_Acceptor -  Defines the format and interface for the listener side of the ACE\_UPIPE\_Stream.

## SYNOPSIS

```
#include <ace/UPIPE_Acceptor.h>
class ACE_UPIPE_Acceptor : public ACE_SPIPE_Acceptor
{
  public:
    ACE_UPIPE_Acceptor (void);
    ACE_UPIPE_Acceptor (
        const ACE_UPIPE_Addr &local_sap,
        int reuse_addr = 0
        );
    int open (const ACE_UPIPE_Addr &local_sap, int reuse_addr = 0);
    ~ACE_UPIPE_Acceptor (void);
    int close (void);
    int remove (void);
    int accept (
        ACE_UPIPE_Stream &server_stream,
        ACE_UPIPE_Addr *remote_addr = 0,
        ACE_Time_Value *timeout = 0,
        int restart = 1,
        int reset_new_handle = 0
        );
    void dump (void) const;
    ACE_ALLOC_HOOK_DECLARE;
  private:
    ACE_Thread_Manager tm;
    ACE_Message_Block mb_;
};
```

## Initialization and termination.

```
ACE_UPIPE_Acceptor (void);
```

Default constructor.

```
ACE_UPIPE_Acceptor (
    const ACE_UPIPE_Addr &local_sap,
    int reuse_addr = 0
    );
```

Initialize passive endpoint.

```
int open (const ACE_UPIPE_Addr &local_sap, int reuse_addr = 0);
```

Initialize passive endpoint.

```
~ACE_UPIPE_Acceptor (void);
```

Close down and release resources.

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

Close down and release resources.

```
int remove (void);
```

Close down and release resources and remove the underlying SPIPE rendezvous point.

## Passive connection acceptance method.

```
int accept (
    ACE_UPIPE_Stream &server_stream,
    ACE_UPIPE_Addr *remote_addr = 0,
    ACE_Time_Value *timeout = 0,
    int restart = 1,
    int reset_new_handle = 0
    );
```

Accept a new data transfer connection.  A timeout of 0 means block forever, a timeout of {0, 0} means poll.  restart == 1 means "restart if interrupted."

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

Dump the state of an object.

```
ACE_ALLOC_HOOK_DECLARE;
```

Declare the dynamic allocation hooks.

## AUTHOR

Gerhard Lenzer and Douglas C. Schmidt

## LIBRARY

ace
