NCBI C++ ToolKit
Classes | Macros | Typedefs | Functions | Variables
ncbi_namedpipe.cpp File Reference
#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>
+ Include dependency graph for ncbi_namedpipe.cpp:

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 STimeouts_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
 

Macro Definition Documentation

◆ NAMEDPIPE_THROW

#define NAMEDPIPE_THROW (   err,
  errtxt 
)     THROW0_TRACE(x_FormatError(int(err), errtxt))

Definition at line 55 of file ncbi_namedpipe.cpp.

◆ NCBI_USE_ERRCODE_X

#define NCBI_USE_ERRCODE_X   Connect_Pipe

Definition at line 52 of file ncbi_namedpipe.cpp.

Typedef Documentation

◆ SOCK_socklen_t

Definition at line 65 of file ncbi_namedpipe.cpp.

◆ TTempCharPtr

typedef AutoPtr< char, CDeleter<char> > TTempCharPtr

Definition at line 85 of file ncbi_namedpipe.cpp.

Function Documentation

◆ s_FormatErrorMessage()

static string s_FormatErrorMessage ( const string where,
const string what 
)
static

◆ s_SetTimeout()

static const STimeout* s_SetTimeout ( const STimeout from,
STimeout to 
)
inlinestatic

◆ x_FormatError()

static string x_FormatError ( int  error,
const string message 
)
static

◆ x_IsDisconnectError()

static bool x_IsDisconnectError ( DWORD  error)
inlinestatic

Definition at line 144 of file ncbi_namedpipe.cpp.

Referenced by CNamedPipeHandle::Write(), and CNamedPipeHandle::x_WaitForRead().

Variable Documentation

◆ kWaitPrecision

const unsigned long kWaitPrecision = 100
Modified on Fri Sep 20 14:58:06 2024 by modify_doxy.py rev. 669887