Architecture-Independent Data Types


Instead of using native C/C++ scalar data types, function parameters and return values in the SmartSockets API use architecture-independent SmartSockets data types listed in the table. These data types make the SmartSockets API more portable and consistent across different 32-bit and 64-bit architectures.

SmartSockets
Data Type
Description
Example 32-bit
C Data Type
Example 64-bit
C Data Type
T_STR
character string
char *
char *
T_PTR
generic pointer
void *
void *
T_BOOL
boolean
int
int
T_CHAR
character
char
char
T_UCHAR
unsigned character
unsigned char
unsigned char
T_INT1
one-byte integer
signed char
signed char
T_UINT1
unsigned one-byte integer
unsigned char
unsigned char
T_INT2
two-byte integer
short
short
T_UINT2
unsigned two-byte integer
unsigned short
unsigned short
T_INT4
four-byte integer
long
int
T_UINT4
unsigned four-byte integer
unsigned long
unsigned int
T_INT8
eight-byte integer
long long
__int64 (Windows)
long
__int64 (Windows)
T_REAL4
four-byte real
float
float
T_REAL8
eight-byte real
double
double
T_REAL16
sixteen-byte real
char [16]
long double


TIBCO SmartSockets™ Utilities
Software Release 6.8, July 2006
Copyright © TIBCO Software Inc. All rights reserved
www.tibco.com