#! /bin/sh
# This is a shell archive.  Remove anything before this line, then unpack
# it by saving it into a file and typing "sh file".  To overwrite existing
# files, type "sh file -c".  You can also feed this as standard input via
# unshar, or by typing "sh <file", e.g..  If this archive is complete, you
# will see the following message at the end:
#		"End of shell archive."
# Contents:  SOCK_IO.h SOCK_IO.i
# Wrapped by schmidt@tango on Wed Mar  1 00:59:25 1995
PATH=/bin:/usr/bin:/usr/ucb ; export PATH
if test -f 'SOCK_IO.h' -a "${1}" != "-c" ; then 
  echo shar: Will not clobber existing file \"'SOCK_IO.h'\"
else
echo shar: Extracting \"'SOCK_IO.h'\" \(1455 characters\)
sed "s/^X//" >'SOCK_IO.h' <<'END_OF_FILE'
X/* -*- C++ -*- */
X
X// ============================================================================
X//
X// = LIBRARY
X//    ACE
X// 
X// = FILENAME
X//    SOCK_IO.h
X//
X// = AUTHOR
X//    Doug Schmidt 
X// 
X// ============================================================================
X
X#if !defined (ACE_SOCK_IO_H)
X#define ACE_SOCK_IO_H
X
X#include "SOCK.h"
X
Xclass SOCK_IO : public SOCK
X  // = TITLE
X  //     Defines the methods for the SOCK I/O routines (i.e., send/recv). 
X  //
X  // = DESCRIPTION
X  //
X{
Xpublic:
X  ssize_t send (const void *buf, size_t n, int flags) const;
X  // Send an n byte buffer to the connected socket (uses send(3)).
X
X  ssize_t recv (void *buf, size_t n, int flags) const;
X  // Recv an n byte buffer from the connected socket (uses recv(3)).
X
X  ssize_t send (const void *buf, size_t n) const;
X  // Send an n byte buffer to the connected socket (uses write(2)).  
X
X  ssize_t recv (void *buf, size_t n) const;
X  // Recv an n byte buffer from the connected socket (uses read(2)).
X
X  ssize_t send (const iovec iov[], size_t n) const;
X  // Send a vector of n byte messages to the connected socket. 
X
X  ssize_t recv (iovec iov[], size_t n) const;
X  // Recv a vector of n byte messages to the connected socket. 
X
X  ssize_t send (size_t n, ...) const;
X  // Send varargs messages to the connected socket. 
X
X  ssize_t recv (size_t n, ...) const;
X  // Recv varargs messages to the connected socket. 
X};
X
X#include "SOCK_IO.i"
X
X#endif /* _SOCK_IO_H */
END_OF_FILE
if test 1455 -ne `wc -c <'SOCK_IO.h'`; then
    echo shar: \"'SOCK_IO.h'\" unpacked with wrong size!
fi
# end of 'SOCK_IO.h'
fi
if test -f 'SOCK_IO.i' -a "${1}" != "-c" ; then 
  echo shar: Will not clobber existing file \"'SOCK_IO.i'\"
else
echo shar: Extracting \"'SOCK_IO.i'\" \(1142 characters\)
sed "s/^X//" >'SOCK_IO.i' <<'END_OF_FILE'
X/* Send an n byte message to the connected socket. */
X
Xinline ssize_t  
XSOCK_IO::send (const void *buf, size_t n, int flags) const
X{
X  return ::send (this->get_handle (), (const char *) buf, n, flags);
X}
X
X/* Recv an n byte message from the connected socket. */
X
Xinline ssize_t  
XSOCK_IO::recv (void *buf, size_t n, int flags) const
X{
X  return ::recv (this->get_handle (), (char *) buf, n, flags);
X}
X
X/* Send an n byte message to the connected socket. */
X
Xinline ssize_t  
XSOCK_IO::send (const void *buf, size_t n) const
X{
X  return ::write (this->get_handle (), (const char *) buf, n);
X}
X
X/* Recv an n byte message from the connected socket. */
X
Xinline ssize_t  
XSOCK_IO::recv (void *buf, size_t n) const
X{
X  return ::read (this->get_handle (), (char *) buf, n);
X}
X
X/* Send a vector of n byte messages to the connected socket. */
X
Xinline ssize_t  
XSOCK_IO::send (const iovec iov[], size_t n) const
X{
X  return ::writev (this->get_handle (), (iovec *) iov, n);
X}
X
X/* Recv an n byte message from the connected socket. */
X
Xinline ssize_t  
XSOCK_IO::recv (iovec iov[], size_t n) const
X{
X  return ::readv (this->get_handle (), (iovec *) iov, n);
X}
X
END_OF_FILE
if test 1142 -ne `wc -c <'SOCK_IO.i'`; then
    echo shar: \"'SOCK_IO.i'\" unpacked with wrong size!
fi
# end of 'SOCK_IO.i'
fi
echo shar: End of shell archive.
exit 0
