Accepts a connection on a socket.
Syntax:
#include types
#include socket
int accept (int s, struct sockaddr *addr, int *addrlen);
Binds a name to a socket.
Syntax:
#include types
#include socket
int bind (int s, struct sockaddr *name, int namelen);
Closes a connection and deletes a socket descriptor.
Syntax:
#include unixio
int close (s);
Initiates a connection on a socket.
Syntax:
#include types
#include socket
int connect (int s, struct sockaddr *name, int namelen);
Returns the name of the connected peer.
Syntax:
#include types
#include socket
getpeername (int s, struct sockaddr *name, int *namelen);
Returns the name associated with a socket.
Syntax:
#include types
#include socket
int getsockname (int s, struct sockaddr *name, int *namelen);
Returns the options set on a socket.
Syntax:
#include types
#include socket
int getsockopt (int s, int level, int optname, char *optval,
int *optlen);
Sets options on a socket.
Syntax:
#include types
#include socket
int setsockopt (int s,int level, int optname,char *optval,
int *optlen);
Searches the host database sequentially from the beginning of the database for a host record with a given address.
Syntax:
#include netdb
struct hostent *gethostbyaddr (char *addr, int len,
int type);
Searches the host database sequentially from the beginning of the database for a host record with a given name or alias.
Syntax:
#include netdb
struct hostent *gethostbyname (char *name);
Reads the next record in the host database, opening the database if necessary. This routine is not currently supported by the VMS/ULTRIX Connection product on a system running the VMS operating system, but it is supported by the ULTRIX operating system.
Syntax:
#include netdb
struct hostent *gethostent ();
Returns the name currently associated to the host.
Syntax:
#include types
#include socket
gethostname (char *name, int namelen);
Searches the network database sequentially from the beginning of the database for a network record with a given address.
Syntax:
#include netdb
struct netent *getnetbyaddr (long net, int type);
Searches the network database sequentially from the beginning of the database for a network record with a given name or alias.
Syntax:
#include netdb
struct netent *getnetbyname (char *name);
Reads the next record in the network database, opening the database if necessary. This routine is not currently supported by the VMS/ULTRIX Connection product on a VMS operating system, but it is supported by the ULTRIX operating system.
Syntax:
#include netdb
struct netent *getnetent ();
Converts longwords from host to network byte order.
Syntax:
#include in
unsigned long int htonl (unsigned long int hostlong);
Converts short integers from host to network byte order.
Syntax:
#include in
unsigned short int htons (unsigned short int hostshort);
Converts Internet addresses in text form into numeric (binary) Internet addresses.
Syntax:
#include in
#include inet
int inet_addr (char *cp);
Returns the local network address portion of an Internet address.
Syntax:
#include in
#include inet
int inet_lnaof (struct in_addr in);
Returns an Internet address given a network address and a local address on that network.
Syntax:
#include in
#include inet
struct in_addr inet_makeaddr (int net, int lna) ;
Returns the Internet network address portion of an Internet address.
Syntax:
#include in
#include inet
int inet_netof (struct in_addr in);
Converts a text string representing an Internet network address in the standard Internet "." notation into an Internet network address in network byte order.
Syntax:
#include in
#include inet
int inet_network (char *cp);
Converts an internet address into a text string representing the address in the standard Internet "." notation.
Syntax:
#include in
#include inet
char *inet_ntoa (struct in_addr in);
Sets the maximum limit of outstanding connection requests for a socket that is connection-oriented.
Syntax:
int listen (int s, int backlog);
Converts longwords from network to host byte order.
Syntax:
#include in
unsigned long int ntohl (unsigned long int netlong) ;
Converts short integers from network to host byte order.
Syntax:
#include in
unsigned short int ntohs (unsigned short int netshort);
Reads bytes from a socket or file and places them in a buffer.
Syntax:
#include unixio
int read (int d, void *buffer, int nbytes);
Receives bytes from a connected socket and places them into a buffer.
Syntax:
#include types
#include socket
int recv (int s, char *buf, int len, int flags);
Receives bytes from a socket from any source.
Syntax:
#include types
#include socket
int recvfrom (int s, char *buf, int len, int flags, struct
sockaddr *from, int *fromlen) ;
Receives bytes on a socket and places them into scattered buffers.
Syntax:
#include types
#include socket
int recvmsg (int s, struct msghdr msg[], int flags);
Allows the user to poll or check a group of sockets for I/O activity. It can check what sockets are ready to be read or written, or what sockets have a pending exception.
Syntax:
#include time
int select (int nfds, int *readfds, int *writefds, int
*execptfds, struct timeval *timeout);
Sends bytes though a socket to its connected peer.
Syntax:
#include types
#include socket
int send (int s, char *msg, int len, int flags);
Sends gathered bytes throgh a socket to any other socket.
Syntax:
#include types
#include socket
int sendmsg (int s, struct msghdr msg[], int flags);
Sends bytes through a socket to any other socket.
Syntax:
#include types
#include socket
int sendto (int s, char *msg, int len, int flags, struct
sockaddr *to, int tolen);
Shuts down all or part of a bidirectional connection on a socket. It can disallow further receives, further sends, or both.
Syntax:
#include socket
shutdown (int s, int how);
Creates an endpoint for communication by returning a special kind of file descriptor called a socket descriptor, which is associated with a VMS/ULTRIX Connection socket device channel.
Syntax:
#include types
#include socket
int socket (int af, int type, int protocol);
Returns the socket device channel associated with a socket descriptor for direct use with the VMS/ULTRIX Connection product.
Syntax:
#include socket
short int vaxc$get_sdc (int s);
Writes a buffer of data to a socket or file.
Syntax:
#include unixio
int write (int d, void *buffer, int nbytes);