ClientApi::SetTicketFile( const StrPtr * )

Sets the full path name of the ticket file to be used for this connection.

Virtual?

No

 

Class

ClientApi

 

Arguments

const StrPtr *c

the full path name of the new ticket file

Returns

void

 

Notes

SetTicketFile() does not permanently set the P4TICKETS value in the environment or registry. The new setting applies only to commands executed by calling this ClientApi object’s Run() method.

Example

The following example sets a ticket file location by calling SetTicketFile().

ClientApi client;
StrBuf sb;

sb = "/tmp/ticketfile.txt";
client.SetTicketFile( &sb );