NCBI C++ ToolKit
Classes | Macros | Typedefs | Functions
ncbi_conn_stream.cpp File Reference
#include <ncbi_pch.hpp>
#include "ncbi_ansi_ext.h"
#include "ncbi_conn_streambuf.hpp"
#include "ncbi_priv.h"
#include "ncbi_servicep.h"
#include "ncbi_socketp.h"
#include <connect/ncbi_conn_exception.hpp>
#include <connect/ncbi_conn_stream.hpp>
#include <connect/ncbi_file_connector.h>
#include <stdlib.h>
+ Include dependency graph for ncbi_conn_stream.cpp:

Go to the source code of this file.

Go to the SVN repository for this file.

Classes

struct  Deleter< SConnNetInfo >
 
class  CConn_FileStream
 

Macros

#define GET_CONN(sb)   ((sb) ? (sb)->GetCONN() : 0)
 

Typedefs

typedef AutoPtr< char, CDeleter< char > > TTempCharPtr
 

Functions

static CConn_IOStream::TConnector s_SocketConnectorBuilder (const string &ahost, unsigned short aport, unsigned short max_try, const void *data, size_t size, TSOCK_Flags flgs)
 
static SOCK s_GrabSOCK (CSocket &socket)
 
static CConn_IOStream::TConnector s_SocketConnectorBuilder (const SConnNetInfo *net_info, const STimeout *timeout, const void *data, size_t size, TSOCK_Flags flgs)
 
static CConn_IOStream::TConnector s_HttpConnectorBuilder (const SConnNetInfo *net_info, EReqMethod method, const char *url, const char *host, unsigned short port, const char *path, const char *args, const char *user_header, void *x_data, FHTTP_Adjust x_adjust, FHTTP_Cleanup x_cleanup, FHTTP_ParseHeader x_parse_header, THTTP_Flags flgs, const STimeout *timeout, void **user_data_ptr, FHTTP_Cleanup *user_cleanup_ptr, void *user_data=0, FHTTP_Cleanup user_cleanup=0)
 
static CConn_IOStream::TConnector s_ServiceConnectorBuilder (const char *service, TSERV_Type types, const SConnNetInfo *net_info, const char *user_header, const SSERVICE_Extra *extra, void *x_data, SSERVICE_Extra *x_extra, FSERVICE_Reset x_reset, FHTTP_Adjust x_adjust, FSERVICE_Cleanup x_cleanup, FHTTP_ParseHeader x_parse_header, FSERVICE_GetNextInfo x_get_next_info, const STimeout *timeout)
 
static CConn_IOStream::TConnector s_PipeConnectorBuilder (const string &cmd, const vector< string > &args, CPipe::TCreateFlags flgs, size_t pipe_size, CPipe *&pipe)
 
static CConn_IOStream::TConnector s_FtpConnectorBuilder (const char *host, unsigned short port, const char *user, const char *pass, const char *path, const SConnNetInfo *net_info, TFTP_Flags flgs, const SFTP_Callback *cmcb, void *x_data, SFTP_Callback *x_cmcb, FFTP_Callback x_func, const STimeout *timeout)
 
static bool x_IsIdentifier (const string &str)
 
CConn_IOStreamNcbiOpenURL (const string &url, size_t buf_size)
 Given a URL, open the data source and make it available for _reading_. More...
 

Macro Definition Documentation

◆ GET_CONN

#define GET_CONN (   sb)    ((sb) ? (sb)->GetCONN() : 0)

Definition at line 90 of file ncbi_conn_stream.cpp.

Typedef Documentation

◆ TTempCharPtr

typedef AutoPtr< char, CDeleter<char> > TTempCharPtr

Definition at line 53 of file ncbi_conn_stream.cpp.

Function Documentation

◆ s_FtpConnectorBuilder()

static CConn_IOStream::TConnector s_FtpConnectorBuilder ( const char *  host,
unsigned short  port,
const char *  user,
const char *  pass,
const char *  path,
const SConnNetInfo net_info,
TFTP_Flags  flgs,
const SFTP_Callback cmcb,
void *  x_data,
SFTP_Callback x_cmcb,
FFTP_Callback  x_func,
const STimeout timeout 
)
static

◆ s_GrabSOCK()

static SOCK s_GrabSOCK ( CSocket socket)
static

◆ s_HttpConnectorBuilder()

static CConn_IOStream::TConnector s_HttpConnectorBuilder ( const SConnNetInfo net_info,
EReqMethod  method,
const char *  url,
const char *  host,
unsigned short  port,
const char *  path,
const char *  args,
const char *  user_header,
void *  x_data,
FHTTP_Adjust  x_adjust,
FHTTP_Cleanup  x_cleanup,
FHTTP_ParseHeader  x_parse_header,
THTTP_Flags  flgs,
const STimeout timeout,
void **  user_data_ptr,
FHTTP_Cleanup user_cleanup_ptr,
void *  user_data = 0,
FHTTP_Cleanup  user_cleanup = 0 
)
static

◆ s_PipeConnectorBuilder()

static CConn_IOStream::TConnector s_PipeConnectorBuilder ( const string cmd,
const vector< string > &  args,
CPipe::TCreateFlags  flgs,
size_t  pipe_size,
CPipe *&  pipe 
)
static

Definition at line 1150 of file ncbi_conn_stream.cpp.

References cmd, eNoOwnership, and PIPE_CreateConnector().

◆ s_ServiceConnectorBuilder()

static CConn_IOStream::TConnector s_ServiceConnectorBuilder ( const char *  service,
TSERV_Type  types,
const SConnNetInfo net_info,
const char *  user_header,
const SSERVICE_Extra extra,
void *  x_data,
SSERVICE_Extra x_extra,
FSERVICE_Reset  x_reset,
FHTTP_Adjust  x_adjust,
FSERVICE_Cleanup  x_cleanup,
FHTTP_ParseHeader  x_parse_header,
FSERVICE_GetNextInfo  x_get_next_info,
const STimeout timeout 
)
static

◆ s_SocketConnectorBuilder() [1/2]

static CConn_IOStream::TConnector s_SocketConnectorBuilder ( const SConnNetInfo net_info,
const STimeout timeout,
const void *  data,
size_t  size,
TSOCK_Flags  flgs 
)
static

◆ s_SocketConnectorBuilder() [2/2]

static CConn_IOStream::TConnector s_SocketConnectorBuilder ( const string ahost,
unsigned short  aport,
unsigned short  max_try,
const void *  data,
size_t  size,
TSOCK_Flags  flgs 
)
static

◆ x_IsIdentifier()

static bool x_IsIdentifier ( const string str)
static

Definition at line 1502 of file ncbi_conn_stream.cpp.

References isalnum(), isalpha(), and str().

Referenced by NcbiOpenURL().

Modified on Sat Mar 02 10:56:02 2024 by modify_doxy.py rev. 669887