HPlogo HP 9000 Networking: BSD Sockets Interface Programmer's Guide > Appendix A BSD Sockets Quick Reference Table

Quick Reference Table

» 

Technical documentation

Complete book in PDF

 » Table of Contents

 » Glossary

 » Index

Release 10.10 of the HP-UX operating system supports two variations of sockets--HP-UX BSD Sockets and X/Open Sockets. To use X/Open sockets, users must make an addition to their make files by including the "-l xnet" argument with the "c89" or "cc" utilities. For detailed information about HP- UX BSD sockets, see this manual as well as the man pages. For detailed information about X/Open sockets, see "CAE Specification, Networking Services, Issue 4, X/Open" and the man pages. Note that the "msghdr" structures have different definitions between HP-UX BSD Sockets and X/ Open Sockets for the RECVMSG and SENDMSG calls. See the appropriate documentation for more information.

Table A-1 Comparison of HP-UX and X/Open Sockets

HP-UX

X/Open

accept

  • int accept (int socket, void *address, int *address_len);

accept

  • int accept (int socket, struct sockaddr *address, size_t *address_len);

bind

  • int bind (int socket, const void *address, int address_len);

bind

  • int bind (int socket, const struct sockaddr *address, size_t address_len);

close

  • int close (int fildes);

close

  • int close (int fildes);

connect

  • int connect (int socket, const void *address, int *address_len);

connect

  • int connect (int socket, const struct sockaddr *address, size_t address_len);

fcntl

  • int fcntl (int fildes, int cmd, .../* arg */);

fcntl

  • int fcntl (int fildes, int cmd, .../* arg */);

getpeername

  • int getpeername (int socket, void *address, int *address_len);

getpeername

  • int getpeername (int socket, struct sockaddr *address, size_t *address_len);

getsockname

  • int getsockname (int socket, void *address, int *address_len);

getsockname

  • int getsockname (int socket, struct sockaddr *addr, size_t *address_len);

getsockopt

  • int getsockopt (int socket, int level, int option_name, void *option_value, int *option_len);

getsockopt

  • int getsockopt (int socket, int level, int option_name, void *option_value, int *option_len);

listen

  • int listen (int s, int backlog);

listen

  • int listen (int s, int backlog);

poll

  • int poll (struct pollfd fds[], int nfds, int timeout);

poll

  • int poll (struct pollfd fds[], int nfds, int timeout);

read(2)

  • ssize_t read (int fildes, void *buf, size_t nbyte);

read(2)

  • ssize_t read (int fildes, void *buf, size_t nbyte);

readv

  • ssize_t readv (int fildes, const struct iovec *iov, int iovcnt);

readv

  • ssize_t readv (int fildes, const struct iovec *iov, int iovcnt);

recv

  • int recv (int socket, void *buffer, int length, int flags);

recv

  • ssize_t recv (int socket, void *buffer, size_t length, int flags);

recvfrom

  • int recvfrom (int socket, void *buffer, int length, int flags, void *address, int *address_len);

recvfrom

  • ssize_t recvfrom (int socket, void *buffer, size_t length, int flags, struct sockaddr *address, size_t *address_len);

recvmsg

  • int recvmsg (int socket, struct msghdr msg[], int flags);

recvmsg

  • ssize_t recvmsg (int socket, struct msghdr *msg, int flags);

select

  • int select (int nfds, fd_set *readfds, fd_set *writefds, fd_set *errorfds, struct timeval *timeout);

select

  • int select (int nfds, fd_set *readfds, fd_set *writefds, fd_set *errorfds, struct timeval *timeout);

send

  • int send (int socket, const void *buffer, int length, int flags);

send

  • ssize_t send (int socket, const void *buffer, size_t length, int flags);

sendmsg

  • int sendmsg (int socket, const struct msghdr msg[], int flags);

sendmsg

  • ssize_t sendmsg (int socket, const struct msghdr *msg, int flags);

sendto

  • int sendto (int socket, const void *msg, int length, int flags, const void *dest_addr, int addr_len);

sendto

  • ssize_t sendto (int socket, const void *msg, size_t length);

setsockopt

  • int setsockopt (int socket, int level, int option_name, const void *option_value, int option_len);

setsockopt

  • int setsockopt (int socket, int level, int option_name, const void *option_value, size_t option_len);

shutdown

  • int shutdown (int s, int how);

shutdown

  • int shutdown (int s, int how);

socket

  • int socket (int af, int type, int protocol);

socket

  • int socket (int domain, int type, int protocol);

socketpair

  • int socketpair (int af, int type, int protocol, int sv[2]);

socketpair

  • int socketpair (int domain, int type, int protocol, int socketvector[2]);

write(2)

  • ssize_t write (int fildes, const void *buf, size_t nbyte);

write(2)

  • ssize_t write (int fildes, const void *buf, size_t nbyte);

writev

  • ssize_t writev (int fildes, const struct iovec *iov, int iovcnt);

writev

  • ssize_t writev (int fildes, const struct iovec *iov, int iovcnt);

 

© 1997 Hewlett-Packard Development Company, L.P.