* (*FConnectorGetType)
82 typedef char* (*FConnectorDescr)
208 #define CONN_SET_METHOD(meta, method, function, connector) \ 210 meta->method = function; \ 211 meta->c_##method = connector; \ 215 #define CONN_SET_DEFAULT_TIMEOUT(meta, timeout) \ 217 if (timeout == kDefaultTimeout) { \ 218 meta->default_timeout = &g_NcbiDefConnTimeout; \ 219 } else if (timeout) { \ 220 meta->default_tmo = *timeout; \ 221 meta->default_timeout = &meta->default_tmo; \ 223 meta->default_timeout = kInfiniteTimeout; \const char *(* FConnectorGetType)(CONNECTOR connector)
Get the name of the connector (may NOT be NULL)
FSetupVTable setup
init meta, may not be NULL
char *(* FConnectorDescr)(CONNECTOR connector)
Get the human readable connector's description (may be NULL on error)
FConnectorGetType get_type
void(* FDestroy)(CONNECTOR connector)
Destroy connector and its data handle.
CONNECTOR next
linked list
EIO_Status(* FConnectorRead)(CONNECTOR connector, void *buf, size_t size, size_t *n_read, const STimeout *timeout)
Read from connector.
EIO_Status(* FConnectorClose)(CONNECTOR connector, const STimeout *timeout)
Close data link (if any) and cleanup related data structures.
EIO_Status(* FConnectorFlush)(CONNECTOR connector, const STimeout *timeout)
Flush yet unwritten output data, if any.
STimeout default_tmo
storage for default_timeout
struct SConnectorTag * CONNECTOR
connector handle
struct SConnectorTag SConnector
Connector specification.
EIO_Status(* FConnectorWrite)(CONNECTOR connector, const void *buf, size_t size, size_t *n_written, const STimeout *timeout)
Write to connector.
const STimeout * default_timeout
default timeout pointer
FDestroy destroy
destroys handle, can be NULL
EIO_Status METACONN_Remove(SMetaConnector *meta, CONNECTOR connector)
Delete given "connector" all its descendants (all connectors if "connector" is NULL) from the connect...
EIO_Status(* FConnectorOpen)(CONNECTOR connector, const STimeout *timeout)
Open connection.
EIO_Status METACONN_Insert(SMetaConnector *meta, CONNECTOR connector)
Insert a connector at the beginning of the connection's list of connectors.
void * handle
data handle of the connector
void(* FSetupVTable)(CONNECTOR connector)
Upcall on request to setup virtual function table (called from connection).
SMetaConnector * meta
back link to original meta
EIO_Status(* FConnectorWait)(CONNECTOR connector, EIO_Event event, const STimeout *timeout)
Wait until either read or write (depending on the "event" value) becomes available,...
const STimeout g_NcbiDefConnTimeout
DEF_CONN_TIMEOUT as STimeout.
EIO_Status(* FConnectorStatus)(CONNECTOR connector, EIO_Event direction)
Obtain last I/O completion code from the transport level (connector).
EIO_Event
I/O event (or direction).
#define NCBI_XCONNECT_EXPORT
const struct ncbi::grid::netcache::search::fields::SIZE size
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4