ODBC Server Reference Manual
UNIX Notes
HP NonStop ODBC Server Reference Manual—429151-002
9-4
DBRBUF
•
The file descriptor returned by this routine can be used only with operating system
facilities that do not read data from the incoming data stream. If data is read from
this stream by any means other than through a DB-LIBRARY routine,
communications between the front end and SQL Server will become scrambled.
•
A companion routine, DBIORDESC(), provides access to the file descriptor used to
read data coming from SQL Server.
Returns
DBIOWDESC returns an integer file descriptor used by the specified DBPROCESS to
write data to SQL Server.
See Also
For further information, see DBIORDESC on page 9-2 or see dbcmd, dbnextrow,
dbresults, dbsqlok, or dbsqlsend in the Microsoft SQL Server Programmer’s
Reference.
DBRBUF
DBRBUF determines whether the DB-LIBRARY network buffer contains any unread
bytes. DBRBUF has the following syntax:
dbproc
a pointer to the DBPROCESS structure that provides the connection for a
particular front-end process or SQL Server process. It contains all the information
that DB-LIBRARY uses to manage communications and data between the front
end and SQL Server.
Comments
The following comments apply to DBRBUF:
•
This routine lets the application know if the DB-LIBRARY network buffer contains
any bytes yet unread.
•
DBRBUF() is ordinarily used in conjunction with dbsqlok() and DBIORDESC() to
manage multiple input data streams. To manage these input streams efficiently, an
application that uses dbsqlok() should check whether any bytes remain either in
the network buffer (by calling DBRBUF()) or in the network itself (by calling the
UNIX select()) before it calls dbresults().
DBBOOL DBRBUF (dbproc)
DBPROCESS *dbproc;