The getPeerName operation retrieves a socket address from the peer socket connected to the receiver.The getPeerName operation operates only on connected sockets.The getPeerName operation is unsuccesful if any of the following errors occur: ENOTINITIALISED, ENETDOWN, EBADF, ENOTSOCK, ENOTCONN, EINPROGRESS. For detailed information on these errors, see Error values.The getSockName operation retrieves the locally bound socket name (address etc.) of the receiver. Typically used to get the local address when a connect is done without doing a bind first.The getSockName operation is unsuccesful if any of the following errors occur: ENOTINITIALISED, ENETDOWN, EBADF, ENOTSOCK, ENOBUFS, EINPROGRESS, EINVAL. For detailed information on these errors, see Error values.The getSockOpt: operation is unsucessful if any of the following errors occur: ENOTINITIALISED, ENETDOWN, EBADF, ENOTSOCK, ENOPROTOPT, EINPROGRESS. For detailed information on these errors, see Error values.The setSockOpt operation is used to set options associated with the receiver (socket). Currently only socket level options are supported.The parameter optionName specifies the option. The following options are typically supported by an operating system implementation:Depending on the optionName parameter, the parameter optionValue is either a Boolean, and array, or an integer. For the following options, optionValue is a Boolean:For the following options, optionValue is a an Integer:For option SODONTLINGER the optionValue is unspecified.The setSockOpt: optionName optionValue: optionValue operation is unsucessful if any of the following errors occur: ENOTINITIALISED, ENETDOWN, EFAULT, ENETRESET, ENOTCONN, EINPROGRESS, EBADF, ENOTSOCK, ENOPROTOOPT. For detailed information on these errors, see Error values.Specifies the type of the shutDown: operation. Use the following values:To disable further receive operations.To disable further send operations.Caution - on some platforms, performing a send on a socket that has been shut down can cause an operating system failure.The shutDown: mode operation is unsucessful if any of the following errors occur: ENOTINITIALISED, ENETDOWN, EINVAL, EINPROGRESS, ENOTCONN, EBADF, ENOTSOCK. For detailed information on these errors, see Error values.
![]() |