Binding

To examine data it receives from clients, an Open Server application must store the data in local program variables. When an application calls srv_bind, it associates parameter or column data with a local application program variable and describes the format of that variable.

A call to srv_bind with cmd set to CS_GET instructs Open Server where to put the data coming from the client. A call to srv_bind with cmd set to CS_SET instructs Open Server where to find the data it is sending back to the client.

The osfmtp argument to srv_bind points to a CS_DATAFMT structure containing format information about the local program variables.