Return the TDS packet size currently in use.
int dbgetpacket(dbproc) DBPROCESS *dbproc;
A pointer to the DBPROCESS structure that provides the connection for a particular front-end/server process. It contains all the information that DB-Library/C uses to manage communications and data between the front end and the server.
The TDS packet size currently in use.
dbgetpacket returns the TDS packet size currently in use.
TDS (Tabular Data Stream) is an application protocol used for the transfer of requests and request results between clients and servers.
TDS data is sent in fixed-size chunks, called “packets”. TDS packets have a default size of 512 bytes.
An application may change the TDS packet size using DBSETLPACKET, which sets the packet size field in the LOGINREC structure. When the application logs in to the server or Open Server, the server sets the TDS packet size for the created DBPROCESS connection to be equal to or less than the value of this field. The packet size is set to a value less than the value of the field if the server is experiencing space constraints. Otherwise, the packet size will be equal to the value of the field.
If an application sends or receives large amounts of text or image data, a packet size larger than the default 512 bytes may improve efficiency, since it results in fewer network reads and writes.