Managing Protocol Services

Set Configuration

lgo_SetConfiguration()

Set the configuration data for a connection.

Syntax
#include "laygo.h"

LResult lgo_SetConfiguration
    (
        LCid           cid,
        LCtlBuffer     buffer,
        LBufferSize    count
    );
cidconnection to configure
bufferbuffer containing configuration for connection
countsize of buffer in bytes
Description

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.

Return Values
If successful, lgo_SetConfiguration() returns a non-negative value. Otherwise, it returns a negative value indicating the reason it failed. Possible unsuccessful return values are:
See Also

lgo_LoadConfiguration()
lgo_GetConfiguration()

Example
size = lgo_GetConfiguration(cid, buffer, bufferSize);

if (size > 0)
{
    /* alter configuration here */
    lgo_SetConfiguration(cid, buffer, size);
}