diff options
| author | Xanadu <none@none> | 2010-07-20 02:49:28 +0200 |
|---|---|---|
| committer | Xanadu <none@none> | 2010-07-20 02:49:28 +0200 |
| commit | 79622802f397258ee0f34327ba3ae6977ca3e7ff (patch) | |
| tree | 1868946c234ab9ee256a6b7766a15713eae94235 /dep/include/ace/MEM_Stream.h | |
| parent | 7dd2dc91816ab8b3bc3b99a1b1c99c7ea314d5a8 (diff) | |
| parent | f906976837502fa5aa81b982b901d1509f5aa0c4 (diff) | |
Merge. Revision history for source files should be all back now.
--HG--
branch : trunk
rename : sql/CMakeLists.txt => sql/tools/CMakeLists.txt
rename : src/server/game/Pools/PoolHandler.cpp => src/server/game/Pools/PoolMgr.cpp
rename : src/server/game/Pools/PoolHandler.h => src/server/game/Pools/PoolMgr.h
rename : src/server/game/PrecompiledHeaders/NixCorePCH.cpp => src/server/game/PrecompiledHeaders/gamePCH.cpp
rename : src/server/game/PrecompiledHeaders/NixCorePCH.h => src/server/game/PrecompiledHeaders/gamePCH.h
Diffstat (limited to 'dep/include/ace/MEM_Stream.h')
| -rw-r--r-- | dep/include/ace/MEM_Stream.h | 158 |
1 files changed, 0 insertions, 158 deletions
diff --git a/dep/include/ace/MEM_Stream.h b/dep/include/ace/MEM_Stream.h deleted file mode 100644 index 0a50cabfe94..00000000000 --- a/dep/include/ace/MEM_Stream.h +++ /dev/null @@ -1,158 +0,0 @@ -// -*- C++ -*- - -//============================================================================= -/** - * @file MEM_Stream.h - * - * $Id: MEM_Stream.h 80826 2008-03-04 14:51:23Z wotte $ - * - * @author Nanbor Wang <nanbor@cs.wustl.edu> - */ -//============================================================================= - -#ifndef ACE_MEM_STREAM_H -#define ACE_MEM_STREAM_H -#include /**/ "ace/pre.h" - -#include "ace/MEM_IO.h" - -#if !defined (ACE_LACKS_PRAGMA_ONCE) -# pragma once -#endif /* ACE_LACKS_PRAGMA_ONCE */ - -#if (ACE_HAS_POSITION_INDEPENDENT_POINTERS == 1) - -#include "ace/INET_Addr.h" - -#if !defined (ACE_MEM_STREAM_MIN_BUFFER) -# define ACE_MEM_STREAM_MIN_BUFFER 4096 -#endif /* ACE_MEM_STREAM_MIN_BUFFER */ - -ACE_BEGIN_VERSIONED_NAMESPACE_DECL - -class ACE_MEM_Acceptor; -class ACE_MEM_Connector; - -/** - * @class ACE_MEM_Stream - * - * @brief Defines the methods in the ACE_MEM_Stream abstraction. - * - * This adds additional wrapper methods atop the ACE_MEM_IO - * class. Notice that ACE_MEM_Stream can only send messages no bigger - * than the underlying MMAP file size minus sizeof (ACE_MEM_SAP_Node). - * The size of the MMAP file is default to ACE_MEM_STREAM_MIN_BUFFER. - * (Define above in this file, to 4096 bytes.) - * If you need to increase the size of allowable message - * ACE_MEM_Stream can handle, you can set it to either - * @c ACE_MEM_Acceptor::malloc_options(). minimal_bytes_ - * @c ACE_MEM_Acceptor::init_buffer_size (size_t size); - * before establishing a connection. - */ -class ACE_Export ACE_MEM_Stream : public ACE_MEM_IO -{ -public: - - friend class ACE_MEM_Acceptor; - friend class ACE_MEM_Connector; - - // Initialization and termination methods. - /// Constructor. - ACE_MEM_Stream (void); - - /// Constructor (sets the underlying ACE_HANDLE with <h>). - ACE_MEM_Stream (ACE_HANDLE h); - - /// Destructor. - ~ACE_MEM_Stream (void); - - //= The following two methods use write and read system calls. - /// Send n bytes, keep trying until n are sent. - /// Recv n bytes, keep trying until n are received. - ssize_t send_n (const void *buf, size_t n); - ssize_t recv_n (void *buf, size_t n); - - // = The following two methods use the send and recv system calls. - /// Send n bytes, keep trying until n are sent. - /// Recv n bytes, keep trying until n are received. - ssize_t send_n (const void *buf, size_t n, int flags); - ssize_t recv_n (void *buf, size_t n, int flags); - -#if 0 - /** - * Try to send exactly @a len bytes into @a buf from <handle> (uses - * the <send> call). If <send> blocks for longer than @a timeout the - * number of bytes actually sent is returned with @c errno == ETIME. - * If a timeout does not occur, <send_n> return @a len (i.e., the - * number of bytes requested to be sent). - */ - ssize_t send_n (const void *buf, - size_t len, - int flags, - const ACE_Time_Value *timeout); - - /** - * Try to recv exactly @a len bytes into @a buf from <handle> (uses - * the <ACE::recv_n> call). The ACE_Time_Value indicates how long - * to blocking trying to receive. If @a timeout == 0, the caller - * will block until action is possible, else will wait until the - * relative time specified in *@a timeout elapses). If <recv> blocks - * for longer than @a timeout the number of bytes actually read is - * returned with @c errno == ETIME. If a timeout does not occur, - * <recv_n> return @a len (i.e., the number of bytes requested to be - * read). - */ - ssize_t recv_n (void *buf, - size_t len, - int flags, - const ACE_Time_Value *timeout); - - /** - * Send an <iovec> of size @a n to the connected socket (uses - * <ACE::sendv_n>). Will block until all bytes are sent or an error - * occurs. - */ - ssize_t sendv_n (const iovec iov[], - size_t n) const; - - /// Receive an <iovec> of size @a n to the connected socket. - ssize_t recvv_n (iovec iov[], - size_t n) const; -#endif /* 0 */ - - // = Selectively close endpoints. - - /// Close down the reader. - int close_reader (void); - - /// Close down the writer. - int close_writer (void); - - /** - * Close down the socket (we need this to make things work correctly - * on Win32, which requires use to do a <close_writer> before doing - * the close to avoid losing data). - */ - int close (void); - - // = Meta-type info - typedef ACE_Addr PEER_ADDR; - - /// Dump the state of an object. - void dump (void) const; - - /// Declare the dynamic allocation hooks. - ACE_ALLOC_HOOK_DECLARE; -}; - -ACE_END_VERSIONED_NAMESPACE_DECL - -#if defined (__ACE_INLINE__) -#include "ace/MEM_Stream.inl" -#endif /* __ACE_INLINE__ */ - -#endif /* ACE_HAS_POSITION_INDEPENDENT_POINTERS == 1 */ - -#include /**/ "ace/post.h" -#endif /* ACE_MEM_STREAM_H */ - |
