DOC HOME SITE MAP MAN PAGES GNU INFO SEARCH PRINT BOOK
 
Programming with sockets

Related functions

The following macros and socket functions provide the additional functionality required to write ``IPv6 ready'' applications.

getaddrinfo and getnameinfo can both be used to retrieve information related to IPv4 and IPv6 addresses. inet_pton and inet_ntop can both convert IPv4 and IPv6 addresses. This means that in ``IPv6 ready'' applications, you do not need to use either inet_addr or inet_ntoa.

In addition to the new functions listed above, the following sockets functions have been modified.

No change in the syntax of these functions is necessary when using them for IPv6, as all addresses are referenced by ``opaque'' address pointers. The only difference when using these functions is that you must cast sockaddr_in6 to struct sockaddr* when using any of these functions except sendmsg and recvmsg. When you use these functions, set the structure member msghdr.msg_name to point to your sockaddr_in6 structure and store the length of the structure in msghdr.msg_namelen.
© 2004 The SCO Group, Inc. All rights reserved.
UnixWare 7 Release 7.1.4 - 27 April 2004