ClientApi::SetHost( const char * )
Sets the hostname to be used for this connection.
|
Virtual? |
No |
|
|
Class |
||
|
Arguments |
|
the new hostname value |
|
Returns |
|
Notes
SetHost() does not
permanently change the host name of the client or set
P4HOST in the environment. The new setting applies
only to commands executed by calling this ClientApi object’s
Run() method.
Example
The following example sets different hostnames and displays them with
p4 info.
ClientApi client; ClientUser ui; client.SetHost( "magic" ); client.Run( "info", &ui ); client.SetHost( "shire" ); client.Run( "info", &ui );