NCBI C++ ToolKit
|
#include <ncbi_pch.hpp>
#include <connect/error_codes.hpp>
#include <connect/ncbi_namedpipe.hpp>
#include <connect/ncbi_util.h>
#include <corelib/ncbifile.hpp>
#include <connect/ncbi_socket_unix.h>
#include <errno.h>
#include <unistd.h>
#include <sys/socket.h>
#include <sys/types.h>
Go to the source code of this file.
Go to the SVN repository for this file.
Classes | |
class | CNamedPipeHandle |
Macros | |
#define | NCBI_USE_ERRCODE_X Connect_Pipe |
#define | NAMEDPIPE_THROW(err, errtxt) THROW0_TRACE(x_FormatError(int(err), errtxt)) |
Typedefs | |
typedef int | SOCK_socklen_t |
typedef AutoPtr< char, CDeleter< char > > | TTempCharPtr |
Functions | |
static const STimeout * | s_SetTimeout (const STimeout *from, STimeout *to) |
static string | x_FormatError (int error, const string &message) |
static string | s_FormatErrorMessage (const string &where, const string &what) |
static bool | x_IsDisconnectError (DWORD error) |
Variables | |
const unsigned long | kWaitPrecision = 100 |
#define NAMEDPIPE_THROW | ( | err, | |
errtxt | |||
) | THROW0_TRACE(x_FormatError(int(err), errtxt)) |
Definition at line 55 of file ncbi_namedpipe.cpp.
#define NCBI_USE_ERRCODE_X Connect_Pipe |
Definition at line 52 of file ncbi_namedpipe.cpp.
typedef int SOCK_socklen_t |
Definition at line 65 of file ncbi_namedpipe.cpp.
typedef AutoPtr< char, CDeleter<char> > TTempCharPtr |
Definition at line 85 of file ncbi_namedpipe.cpp.
Definition at line 125 of file ncbi_namedpipe.cpp.
Referenced by CNamedPipeHandle::Close(), CNamedPipeHandle::Create(), CNamedPipeHandle::Disconnect(), CNamedPipeHandle::Listen(), CNamedPipeHandle::Open(), CNamedPipeHandle::Read(), CNamedPipeHandle::Wait(), and CNamedPipeHandle::Write().
Definition at line 74 of file ncbi_namedpipe.cpp.
References kInfiniteTimeout, kMicroSecondsPerSecond, STimeoutTag::sec, and STimeoutTag::usec.
Referenced by CNamedPipe::SetTimeout().
Definition at line 88 of file ncbi_namedpipe.cpp.
References _T_CSTRING, eNoOwnership, eTakeOwnership, AutoPtr< X, Del >::get(), NcbiMessagePlusError(), NULL, and result.
Definition at line 144 of file ncbi_namedpipe.cpp.
Referenced by CNamedPipeHandle::Write(), and CNamedPipeHandle::x_WaitForRead().
const unsigned long kWaitPrecision = 100 |
Definition at line 141 of file ncbi_namedpipe.cpp.
Referenced by CNamedPipeHandle::Listen(), CNamedPipeHandle::Open(), s_PeekStdin(), CNamedPipeHandle::Write(), and CNamedPipeHandle::x_WaitForRead().