37 #define NCBI_USE_ERRCODE_X Ctools_ASN
61 return (
Int2) n_written;
101 "Cannot create close callback for ASN.1 CONN-based stream");
static Int2 LIBCALLBACK s_AsnWrite(Pointer conn, CharPtr buf, Uint2 len)
static EIO_Status s_AsnClose(CONN conn, TCONN_Callback type, void *data)
static Int2 LIBCALLBACK s_AsnRead(Pointer conn, CharPtr buf, Uint2 len)
static int s_AsnSetCloseCb(CONN conn, AsnIoPtr aip)
static CS_CONNECTION * conn
static SQLCHAR output[256]
ECONN_Callback
Set user callback function to be invoked upon an event specified by the callback type.
CONNECTOR SERVICE_CreateConnectorEx(const char *service, TSERV_Type types, const SConnNetInfo *net_info, const SSERVICE_Extra *extra)
EIO_Status CONN_Read(CONN conn, void *buf, size_t size, size_t *n_read, EIO_ReadMethod how)
EIO_Status CONN_SetCallback(CONN conn, ECONN_Callback type, const SCONN_Callback *new_cb, SCONN_Callback *old_cb)
unsigned int TCONN_Callback
EIO_Status CONN_Write(CONN conn, const void *buf, size_t size, size_t *n_written, EIO_WriteMethod how)
void * data
data to pass to the callback as its last arg
EIO_Status CONN_Create(CONNECTOR connector, CONN *conn)
Same as CONN_CreateEx() called with 0 in the "flags" parameter.
FCONN_Callback func
function address to call on the event
@ eCONN_OnClose
NB: CONN has been flushed prior to the call.
int16_t Int2
2-byte (16-bit) signed integer
uint16_t Uint2
2-byte (16-bit) unsigned integer
unsigned int TSERV_Type
Bitwise OR of ESERV_Type[Special].
@ eIO_Success
everything is fine, no error occurred
@ eIO_ReadPlain
read readily available data only, wait if none
@ eIO_WritePersist
write exactly as much as specified, w/waits
#define CORE_LOG_X(subcode, level, message)
#define FALSE
bool replacment for C indicating false.