LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 08-07-2003, 10:59 PM   #1
abhijit
LQ Newbie
 
Registered: May 2003
Posts: 9

Rep: Reputation: 0
hton1 function not found!


Hi all,
I included <netitnet/in.h> as mentioned in "man htons" but when I am trying to compile i am getting an error for "hton1()"
please advise....

cheers.
abhijit
 
Old 08-08-2003, 12:16 AM   #2
kezz
LQ Newbie
 
Registered: Aug 2002
Distribution: Slackware 9 FreeBSD 4.8
Posts: 9

Rep: Reputation: 0
It might be the font but it looks like you've written hton1 instead of htonl (an L).

kezz
 
Old 08-08-2003, 12:18 AM   #3
kezz
LQ Newbie
 
Registered: Aug 2002
Distribution: Slackware 9 FreeBSD 4.8
Posts: 9

Rep: Reputation: 0
if the above is true it is because the function is an abbreviation of Host TO Network Long. Similarly there is also htons (host to network short) and reverse versions ntohl and htons.

kezz
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
netdir_getbyname function not found on linux vlv Linux - Software 1 09-09-2005 07:48 AM
what are the Hexadecimal function and ASCII function in Perl Bassam Programming 1 06-03-2004 01:44 AM
A main can be changed by a function local without passing anything to the function? ananthbv Programming 10 05-04-2004 01:31 PM
Is the wait function is the same as the sleep function ? Linh Programming 3 04-28-2004 12:39 PM
Perl exec function in linux (and system-function) nazula Programming 1 04-19-2004 12:21 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 06:22 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration