NAME

ACE_SOCK_Stream - Defines the methods in the ACE_SOCK_Stream abstraction.

SYNOPSIS

#include <ace/SOCK_Stream.h>

class ACE_SOCK_Stream : public ACE_SOCK_IO { public: ACE_SOCK_Stream (void); ACE_SOCK_Stream (ACE_HANDLE h); ~ACE_SOCK_Stream (void); ssize_t send_n (const void *buf, int n) const; ssize_t recv_n (void *buf, int n) const; ssize_t send_n (const void *buf, int n, int flags) const; ssize_t recv_n (void *buf, int n, int flags) const; 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; ssize_t send_urg (void *ptr, int len = sizeof (char)); ssize_t recv_urg (void *ptr, int len = sizeof (char)); int close_reader (void); int close_writer (void); int close (void); typedef ACE_INET_Addr PEER_ADDR; void dump (void) const; ACE_ALLOC_HOOK_DECLARE; };

DESCRIPTION

This adds additional wrapper methods atop the ACE_SOCK_IO class.

The following two methods use write and read system calls.

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

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

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

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

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

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;

Send/receive an ``urgent'' character (see TCP specs...).

ssize_t send_urg (void *ptr, int len = sizeof (char));

ssize_t recv_urg (void *ptr, int len = sizeof (char));

Selectively close endpoints.

int close_reader (void);

int close_writer (void);

int close (void);

Meta-type info

typedef ACE_INET_Addr PEER_ADDR;

void dump (void) const;

ACE_ALLOC_HOOK_DECLARE;

AUTHOR

Doug Schmidt

LIBRARY

ace