ODBC Server Reference Manual

Stored Procedures
HP NonStop ODBC Server Reference Manual429151-002
5-40
SPELIB Interface
SP_SRV_ENCODE_SPELIB_ERROR
This function enables the server to encode an SPELIB error.
env
input
is a pointer to the environment object STRUCT.
error-num
input
specifies the error number to be returned to the client.
SP_SRV_GET_BUFFERLEN
This function enables the server programmer to determine how much of the IPC buffer
is currently in use. This information can then be used with the call-back to facility to
send the current IPC buffer to the NonStop ODBC Server. The value returned can be
used in a call to WRITE or REPLY.
env
input
is a pointer to the environment object STRUCT.
buffer-len
output
is a pointer to the length of the output buffer.
short int SP_SRV_ENCODE_SPELIB_ERROR
( void * env
, long int error-num
)
short int SP_SRV_GET_BUFFERLEN
( void * env
, unsigned long int * buffer-len
)
Note. If you are using the SPELIB shell routines provided with the sample server, you should
not need to use this function; all call-back processing is handled automatically by the shell
routines.