Utils.TPCONVMAXSTR Field

 

public const int TPCONVMAXSTR;

 

Remarks

 

Utils.TPTOSTRING Field

 

public const int TPTOSTRING;

 

Remarks

Utils.tpconvert Method

Converts structures to/from string representations.

public static void tpconvert(

ref string strrep,

CLIENTID binrep,

long flags

);

 

public static void tpconvert(

ref string strrep,

TPTRANID binrep,

long flags

);

 

public static void tpconvert(

ref string strrep,

XID binrep,

long flags

);

 

Remarks

tpconvert() converts the string representation of interface structures (strrep) to or from the binary representation (binrep).

Both the direction of the conversion and the interface structure type are determined from the flags argument. To convert a structure from binary representation to string representation, the programmer must set the TPTOSTRING bit in flags. To convert a structure from string to binary the programmer must clear the bit.

 

Utils.tuxgetenv Method

Returns value for environment name.

public static string tuxgetenv(

string name

);

 

Remarks

tuxgetenv() searches the environment list for a string of the form name=value and, if the string is present, returns a string containing the value in the current environment. Otherwise, it returns a null.

Note that tuxgetenv is case-sensitive.

 

Utils.tuxputenv Method

Changes or adds a value to the environment.

public static void tuxputenv(

string env

);

 

Remarks

env points to a string of the form "name=value." tuxputenv() makes the value of the environment variable name equal to value by altering an existing variable or creating a new one. In either case, the string pointed to by env becomes part of the environment.

If tuxputenv() cannot obtain enough space for an expanded environment, it throws an exception of OutOfMemoryException.

Note that tuxputenv() is case-sensitive.

 

Utils.tuxreadenv Method

Adds variables to the environment from a file.

public static void tuxreadenv(

string file,

string label

);

 

Remarks

tuxreadenv() reads a file containing environment variables and adds them to the environment, independent of platform. These variables are available using tuxgetenv() and can be reset using tuxputenv().

 

Utils.userlog Method

Writes a message to the BEA Tuxedo ATMI system central event log.

public static int userlog(

string to_be_logged_string

);

 

Remarks