Reference

ACE_ATM_Stream(3)

Defines the member functions for ACE_ATM_Stream abstraction.

NAME

ACE_ATM_Stream - Defines the member functions for ACE_ATM_Stream abstraction.

SYNOPSIS

#include <ace/ATM_Stream.h>
class ACE_ATM_Stream
{
  public:
    ACE_ATM_Stream (void);
    int open (ACE_ATM_Params params = ACE_ATM_Params());
    int close (void);
    ACE_HANDLE get_handle (void) const;
    ATM_Stream& get_stream (void);
    char* get_peer_name (void) const;
    int get_vpi_vci (ACE_UINT16 &vpi, ACE_UINT16 &vci) const;
    ssize_t recv (void *buf, size_t n, int *flags = 0) const;
    ssize_t send_n (const void *buf, size_t n, int flags) const;
    typedef ACE_ATM_Addr PEER_ADDR;
    void dump (void) const;
    ACE_ALLOC_HOOK_DECLARE;
  private:
    ATM_Stream stream_;
};

Initialization and termination methods.

ACE_ATM_Stream (void);

Default constructor.

ATM-specific open and shutdown operations.

int open (ACE_ATM_Params params = ACE_ATM_Params());

open the stream.

int close (void);

Close down and release resources.

ACE_HANDLE get_handle (void) const;

Get the underlying handle.

ATM_Stream& get_stream (void);

Get the underlying stream.

char* get_peer_name (void) const;

Get the name of the connected host.

int get_vpi_vci (ACE_UINT16 &vpi, ACE_UINT16 &vci) const;

Get the VPI and VCI of the stream.

ssize_t recv (void *buf, size_t n, int *flags = 0) const;

Recv an n byte buffer from the connected transport mechanism.

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

Send exactly n bytes to the connected transport mechanism.

Meta-type info

typedef ACE_ATM_Addr PEER_ADDR;

void dump (void) const;

Dump the state of an object.

ACE_ALLOC_HOOK_DECLARE;

Declare the dynamic allocation hooks.

AUTHOR

Joe Hoffert

LIBRARY

ace