Chapter Contents

Previous

Next
inet_makeaddr

inet_makeaddr



Constructs an Internet Address

Portability: UNIX compatible


SYNOPSIS
DESCRIPTION
RETURN VALUE
PORTABILITY
IMPLEMENTATION
RELATED FUNCTIONS


SYNOPSIS

#include <sys/types.h>
#include <netinet/in.h>
#include <arpa/inet.h>

struct in_addr inet_makeaddr(int net, int lna);


DESCRIPTION

inet_makeaddr constructs an Internet address from an Internet network number net and a local network address lna . Both the Internet network number and the local network address are specified in host byte order.


RETURN VALUE

inet_makeaddr returns the Internet address in network byte order.


PORTABILITY

inet_makeaddr is portable to other environments, including most UNIX systems, that implement BSD sockets.


IMPLEMENTATION

The SAS/C version of inet_makeaddr is a direct port from the BSD UNIX Socket Library.


RELATED FUNCTIONS

inet_addr , inet_lnaof , inet_netof , inet_network , inet_ntoa


Chapter Contents

Previous

Next

Top of Page

Copyright © 2001 by SAS Institute Inc., Cary, NC, USA. All rights reserved.