Managing Protocol Services
lgo_SetConfiguration()
Set the configuration data for a connection.
#include "laygo.h"
LResult lgo_SetConfiguration
(
LCid cid,
LCtlBuffer buffer,
LBufferSize count
);
| cid | connection to configure |
| buffer | buffer containing configuration for connection |
| count | size of buffer in bytes |
lgo_SetConfiguration() sets the configuration data for a connection. The connection must be in the open state to be configured.
The structure of the configuration data is defined by the protocol.
size = lgo_GetConfiguration(cid, buffer, bufferSize);
if (size > 0)
{
/* alter configuration here */
lgo_SetConfiguration(cid, buffer, size);
}