Change Connection Attribute (QTOCCCNA) API

  Required Parameter Group:


  Threadsafe: Yes

The Change Connection Attribute (QTOCCCNA) API can change the attribute of a socket or connection directly. A valid socket descriptor is not required. Instead, the socket or connection to be changed is identified by specifying the associated port and IP address information.

The SO_DEBUG socket option is the only attribute that can be changed.


Authorities and Locks

Default public authority
*EXCLUDE.

Required Parameter Group

Change information
INPUT; CHAR(*)

The socket or connection that is changed.

Change information format
INPUT; CHAR(8)

The format of the change information input data. The possible values are:


Length of change information
INPUT; BINARY(4)

The total length in bytes of the change information input variable.

Error code
I/O; CHAR(*)

The structure in which to return error information. For the format of the structure, see Error code parameter. If this parameter is omitted, diagnostic and escape messages are issued to the application.


TCPA0001 Format

Use this format when changing a connection. For detailed descriptions of the fields in this table, see Field Descriptions.



UDPA0001 Format

Use this format when changing a socket. For detailed descriptions of the fields in this table, see Field Descriptions.



Field Descriptions

Attribute to change. The possible value is:

Attribute value. Possible values are:

Local IP address. The local internet address used by the connection in binary form.

Local port number. The local system port number used by the connection.

Remote IP address. The remote internet address used by the connection in binary form.

Remote port number. The remote system port number used by the connection.


TCPA0101 Format

Use this format when changing an IPv6 connection. For detailed descriptions of the fields in this table, see Field Descriptions.



UDPA0101 Format

Use this format when changing an IPv6 socket. For detailed descriptions of the fields in this table, see Field Descriptions.



Field Descriptions

Attribute to change. The possible value is:

Attribute value. Possible values are:

Local IPv6 address. The local IPv6 address used by the connection in binary form.

Local port number. The local system port number used by the connection.

Remote IPv6 address. The remote IPv6 address used by the connection in binary form.

Remote port number. The remote system port number used by the connection.


Error Messages



API introduced: V5R1

[ Back to top | Communications APIs | APIs by category ]