Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

htonl(3) [osf1 man page]

htonl(3)						     Library Functions Manual							  htonl(3)

NAME
htonl - Converts an unsigned 32-bit integer from host byte order to Internet network-byte order LIBRARY
Standard C Library (libc.so, libc.a) SYNOPSIS
#include <arpa/inet.h> in_addr_t htonl ( in_addr_t hostint) ; STANDARDS
Interfaces documented on this reference page conform to industry standards as follows: htonl(): XNS4.0 Refer to the standards(5) reference page for more information about industry standards and associated tags. PARAMETERS
Specifies a 32-bit integer in host byte order. DESCRIPTION
The htonl() (host-to-network long) function converts an unsigned 32-bit integer from host byte order to Internet network-byte order. The Internet network requires address and port reference data in network-byte order. Use the htonl() function to convert address and port integers from Internet host byte order to Internet network-byte ordered integers. RETURN VALUES
Upon successful completion, the htonl() function returns a 32-bit integer in Internet network-byte order. ERRORS
Current industry standards do not define error values for the htonl() function. RELATED INFORMATION
Functions: endhostent(3), endservent(3), htons(3), ntohl(3), ntohs(3) Standards: standards(5) Network Programmer's Guide delim off htonl(3)

Check Out this Related Man Page

inet_makeaddr(3)					     Library Functions Manual						  inet_makeaddr(3)

NAME
inet_makeaddr - Translates an Internet network address and host address into an Internet network byte-ordered address LIBRARY
Standard C Library (libc.so, libc.a) SYNOPSIS
#include <arpa/inet.h> struct in_addr inet_makeaddr( in_addr_t net_num, in_addr_t loc_addr) ; STANDARDS
Interfaces documented on this reference page conform to industry standards as follows: inet_makeaddr(): XNS4.0 Refer to the standards(5) reference page for more information about industry standards and associated tags. PARAMETERS
Defines a network number in host-byte order. Defines a host (local) address in host-byte order. DESCRIPTION
The inet_makeaddr() function translates a network number and a local host address into their equivalent Internet address. The Internet address is returned in network-byte order. RETURN VALUES
The inet_makeaddr() function returns an Internet address in network byte order. ERRORS
Current industry standards for inet_makeaddr() do not define error values. RELATED INFORMATION
Functions: inet_addr(3), inet_lnaof(3), inet_netof(3), inet_network(3), inet_ntoa(3) Standards: standards(5) Network Programmer's Guide delim off inet_makeaddr(3)
Man Page

8 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

How to connect to the Internet Using RH 7.2 i.e configuration plz Hlp

How to connect to the Internet Using RH 7.2 i.e configuration plz Hlp.....cause I want to accsses to the Internet to download Help and application in the Red hat OS???? (1 Reply)
Discussion started by: atiato
1 Replies

2. Shell Programming and Scripting

open unix file in windows

Hi, I have a text file in unix. i am trying to give a link in Internet explorer to that file. If i click on the link in Internet Explorer page then it should display the text from file in unix. is that anyway possible.... i am trying it for past 2 days....if i find a way out i will... (3 Replies)
Discussion started by: ganesh
3 Replies

3. Linux

Internet dying in Debian?

(1 Reply)
Discussion started by: riwa
1 Replies

4. UNIX for Dummies Questions & Answers

How to determine if a host is connected to the Internet in Unix?

How to determine if a host is connected to the Internet in Unix ? (1 Reply)
Discussion started by: shuhang2
1 Replies

5. Linux

Internet Problem

(3 Replies)
Discussion started by: krabu
3 Replies

6. Infrastructure Monitoring

SF4800 SC not accessible thru network

Hi All, I have my SC setup as attached below but I am having problem accessing the port thru network. sc0 was accessible only after i failed over the configuratios to sc1 (now then sc1 was not pingable :(). Just wondering is there anything wrong with my sc settings? Appreciate your advice. ... (4 Replies)
Discussion started by: honmin
4 Replies

7. UNIX for Dummies Questions & Answers

I have files that are locked up...

Here's the story: I had an LaCie Internet Space (1TB)... Recently the network (or software) functions of the device just died... I tried to access it via different routers, checking UTP, tried everything possible to rule out physical damage to components. Then i got the disk out of its... (2 Replies)
Discussion started by: SentinelX
2 Replies

8. News, Links, Events and Announcements

Airlines industry

Hi, I want to move to unix admin from support. Which unix can i learn to get into airlines industry projects? Thanks in advance. (1 Reply)
Discussion started by: sam_bd
1 Replies