EZASOKET - Supported API

The APIs and entry points in the table below are supported. If an API is not mentioned below, it is unsupported.

If an unsupported API is called, a return code of -1 and error number of 45 - IBM error "Operation not supported" is returned.

EZASOKET / EZACICSO API Name Limitations
ACCEPT
BIND
CLOSE
CONNECT

FCNTL New in 2.3.1
GETCLIENTID New in 2.3.1
GETHOSTID New in 2.3.1
GETHOSTNAME New in 2.3.1
GETPEERNAME New in 2.3.1
GETSOCKNAME New in 2.3.1
GETSOCKOPT New in 2.3.1
  • SO_ACCEPTCONN
  • SO_BROADCAST
  • SO_DEBUG
  • SO_ERROR
  • SO_KEEPALIVE
  • SO_LINGER
  • SO_RCVBUF
  • SO_REUSEADDR
  • SO_SNDBUF
  • SO_TYPE
  • TCP_NODELAY

GIVESOCKET New in 2.3.1

The CLIENT parameter is ignored. That is, this version does not support restricting which tasks can take a socket.

Cross-region GIVESOCKET is not supported.

INITAPI The IDENT and SUBTASK parameters are ignored.
IOCTL New in 2.3.1

Only the FIONBIO and FIONREAD operations are supported.

LISTEN
NTOP
PTON
READ
SEND
SENDTO New in 2.3.1
RECV
RECVFROM
SELECT Where a socket specified with the ESNDMSK parameter has been the subject of a GIVESOCKET, but has not yet been the subject of a TAKESOCKET, SELECT will continue to poll the socket until the TAKESOCKET occurs. In addition, SELECT cannot test sockets which are in this "given" state for normal I/O events
SETSOCKOPT Only the following operations are supported:
  • SO_DEBUG
  • SO_KEEPALIVE
  • SO_LINGER
  • SO_RCVBUF
  • SO_REUSEADDR
  • SO_SNDBUF
  • TCP_NODELAY
SHUTDOWN New in 2.3.1
SOCKET
  • The value of the PROTO parameter passed by the caller is ignored.

    Only STREAM and datagram sockets are supported.

TAKESOCKET New in 2.3.1

Only the TASK field of the CLIENT parameter is used. Other fields are ignored.

See GIVESOCKET above for more information on the limitations of GIVESOCKET and TAKESOCKET in this release.

TERMAPI
WRITE
EZACICAL API Name
ACCEPT
BIND
CLOSE
CONNECT
INITAPI The IDENT and SUBTASK parameters are ignored.
GETHOSTID New in 2.3.1
GETHOSTNAME New in 2.3.1
GETPEERNAME New in 2.3.1
GETSOCKNAME New in 2.3.1
GETSOCKOPT New in 2.3.1
  • SO_ACCEPTCONN
  • SO_BROADCAST
  • SO_DEBUG
  • SO_ERROR
  • SO_KEEPALIVE
  • SO_LINGER
  • SO_RCVBUF
  • SO_REUSEADDR
  • SO_SNDBUF
  • SO_TYPE
  • TCP_NODELAY
GIVESOCKET New in 2.3.1

The CLIENT parameter is ignored. That is, this version does not support restricting which tasks can take a socket.

Cross-region GIVESOCKET is not supported.

IOCTL New in 2.3.1

Only the FIONBIO and FIONREAD operations are supported.

LISTEN
READ
RECV
SELECT Where a socket specified with the ESNDMSK parameter has been the subject of a GIVESOCKET, but has not yet been the subject of a TAKESOCKET, SELECT will continue to poll the socket until the TAKESOCKET occurs. In addition, SELECT cannot test sockets which are in this "given" state for normal I/O events
SEND
SENDTO New in 2.3.1
SHUTDOWN New in 2.3.1
SOCKET
  • The value of the PROTO parameter passed by the caller is ignored.

    Only STREAM and datagram sockets are supported.

TAKESOCKET New in 2.3.1

Only the TASK field of the CLIENT parameter is used. Other fields are ignored.

See GIVESOCKET above for more information on the limitations of GIVESOCKET and TAKESOCKET in this release.

SETSOCKOPT Only the following operations are supported:
  • SO_DEBUG
  • SO_KEEPALIVE
  • SO_LINGER
  • SO_RCVBUF
  • SO_REUSEADDR
  • SO_SNDBUF
  • TCP_NODELAY
WRITE