Binary send and receive

Binary send and receive functions transfer the binary representation of the opaque data type to and from the client.

This category is valid for the C and C++ languages. BladeSmith generates this category by default.

Binary send and receive functions allow the client and server to execute on different operating systems, with different data type representations. When a client connects with a server, it sends a description of its data representation. The server calls the binary send function to convert opaque data type values to the client format before sending them to the client. The binary receive function converts a value arriving from the client binary format to the server binary format.

You do not have to know the specifics about data representation on different operating systems to convert an instance of a data type. Binary send and receive functions call DataBlade® API routines for each member of the structure to convert values to the appropriate C data type representation for the destination platform.

The names of these functions differ for different programming languages, as listed in the following table.
Table 1. Functions for different programming languages
Language Function names
SQL OpaqueSend(), OpaqueRecv()
C OpaqueSend(), OpaqueReceive()
C++ Send(), Receive()