NAME

ACE_MEM_Stream - Defines the methods in the ACE_MEM_Stream abstraction.

SYNOPSIS

#include <ace/MEM_Stream.h>

class ACE_MEM_Stream : public ACE_MEM_IO { public: friend class ACE_MEM_Acceptor; friend class ACE_MEM_Connector; ACE_MEM_Stream (void); ACE_MEM_Stream (ACE_HANDLE h); ~ACE_MEM_Stream (void); ssize_t send_n (const void *buf, int n); ssize_t recv_n (void *buf, int n); ssize_t send_n (const void *buf, int n, int flags); ssize_t recv_n (void *buf, int n, int flags); ssize_t send_n ( const void *buf, size_t len, int flags, const ACE_Time_Value *timeout ); ssize_t recv_n ( void *buf, size_t len, int flags, const ACE_Time_Value *timeout ); ssize_t sendv_n (const iovec iov[], size_t n) const; ssize_t recvv_n (iovec iov[], size_t n) const; int close_reader (void); int close_writer (void); int close (void); typedef ACE_Addr PEER_ADDR; void dump (void) const; ACE_ALLOC_HOOK_DECLARE; };

DESCRIPTION

This adds additional wrapper methods atop the ACE_MEM_IO class.

The following two methods use write and read system calls.

ssize_t send_n (const void *buf, int n);

ssize_t recv_n (void *buf, int n);

The following two methods use the send and recv system calls.

ssize_t send_n (const void *buf, int n, int flags);

ssize_t recv_n (void *buf, int n, int flags);

ssize_t send_n (
    const void *buf,
    size_t len,
    int flags,
    const ACE_Time_Value *timeout
    );

ssize_t recv_n (
    void *buf,
    size_t len,
    int flags,
    const ACE_Time_Value *timeout
    );

ssize_t sendv_n (const iovec iov[], size_t n) const;

ssize_t recvv_n (iovec iov[], size_t n) const;

Selectively close endpoints.

int close_reader (void);

int close_writer (void);

int close (void);

Meta-type info

typedef ACE_Addr PEER_ADDR;

void dump (void) const;

ACE_ALLOC_HOOK_DECLARE;

AUTHOR

Nanbor Wang nanbor@cs.wustl.edu

LIBRARY

ace