Helix Core is now P4. Product user interfaces will be updated soon. Learn more >>

C/C++ API Documentation | 2026.1

# ClientApi::SetProtocolV( char * )

Sets special protocols for the server to use.

Virtual? | No |
Class | `ClientApi` |
Arguments | `char *nv` | the name and value of the variable to set in `var=val` form
Returns | `void` |

## Notes

`SetProtocolV()` functions identically to `SetProtocol()`, except that its argument is a single string of the format `variable=value`.

## Example

The following example demonstrates the use of `SetProtocolV()` to enable tagged output. The result is that the `ClientUser` object uses `OutputStat()` to handle the output, rather than `OutputInfo()`.

    ClientApi client;
    Error e;

    client.SetProtocolV( "tag=" );
    client.Init( &e );
    client.Run( "branches", &ui );
    client.Final( &e );

Your search for returned results