This structure is used to catalog TCP/IP nodes (see sqlectnd - Catalog Node).
Note: | To catalog a TCP/IP SOCKS node, set the PROTOCOL type in the node directory structure to SQL_PROTOCOL_SOCKS before calling the sqlectnd API (see SQLE-NODE-STRUCT). |
Table 42. Fields in the SQLE-NODE-TCPIP Structure
Field Name | Data Type | Description | ||
---|---|---|---|---|
HOSTNAME | CHAR(255) | The name of the TCP/IP host on which the DB2 server instance resides. | ||
SERVICE_NAME | CHAR(14) | TCP/IP service name or associated port number of the DB2 server instance. | ||
|
Language Syntax
C Structure
/* File: sqlenv.h */ /* Structure: SQLE-NODE-TCPIP */ /* ... */ SQL_STRUCTURE sqle_node_tcpip { _SQLOLDCHAR hostname[SQL_HOSTNAME_SZ+1]; _SQLOLDCHAR service_name[SQL_SERVICE_NAME_SZ+1]; }; /* ... */ |
COBOL Structure
* File: sqlenv.cbl 01 SQL-NODE-TCPIP. 05 HOSTNAME PIC X(255). 05 FILLER PIC X. 05 SERVICE-NAME PIC X(14). 05 FILLER PIC X. * |