Reference

ACE_FIFO_Recv(3)

Receiver side of the bytestream C++ wrapper for UNIX FIFOs.

NAME

ACE_FIFO_Recv - Receiver side of the bytestream C++ wrapper for UNIX FIFOs.

SYNOPSIS

#include <ace/FIFO_Recv.h>
class ACE_FIFO_Recv : public ACE_FIFO
{
  public:
    ACE_FIFO_Recv (void);
    ACE_FIFO_Recv (
        const ASYS_TCHAR *rendezvous,
        int flags = O_CREAT | O_RDONLY,
        int perms = ACE_DEFAULT_FILE_PERMS,
        int persistent = 1,
        LPSECURITY_ATTRIBUTES sa = 0
        );
    int open (
        const ASYS_TCHAR *rendezvous,
        int flags = O_CREAT | O_RDONLY,
        int perms = ACE_DEFAULT_FILE_PERMS,
        int persistent = 1,
        LPSECURITY_ATTRIBUTES sa = 0
        );
    int close (void);
    ssize_t recv (void *buf, size_t len);
    ssize_t recv_n (void *buf, size_t len);
    void dump (void) const;
    ACE_ALLOC_HOOK_DECLARE;
  private:
    ACE_HANDLE aux_handle_;
};

Initialization methods.

ACE_FIFO_Recv (void);

Default constructor.

ACE_FIFO_Recv (
    const ASYS_TCHAR *rendezvous,
    int flags = O_CREAT | O_RDONLY,
    int perms = ACE_DEFAULT_FILE_PERMS,
    int persistent = 1,
    LPSECURITY_ATTRIBUTES sa = 0
    );

Open up a bytestream named pipe for reading.

int open (
    const ASYS_TCHAR *rendezvous,
    int flags = O_CREAT | O_RDONLY,
    int perms = ACE_DEFAULT_FILE_PERMS,
    int persistent = 1,
    LPSECURITY_ATTRIBUTES sa = 0
    );

Open up a bytestream named pipe for reading.

int close (void);

Close down the named pipe.

ssize_t recv (void *buf, size_t len);

Recv buf of up to len bytes.

ssize_t recv_n (void *buf, size_t len);

Recv buf of exactly len bytes (block until done).

void dump (void) const;

Dump the state of an object.

ACE_ALLOC_HOOK_DECLARE;

Declare the dynamic allocation hooks.

AUTHOR

Doug Schmidt

LIBRARY

ace