12-02-2008
Can Anybody tell me How can I send data in a network byte order via raw sockets?
8 More Discussions You Might Find Interesting
1. Programming
what is WDFP and WE STATION? (1 Reply)
Discussion started by: billybayou
1 Replies
2. UNIX for Dummies Questions & Answers
Hi there
I am trying to find out what processes were running on my sun solaris 5.8 server yesterday.
There are no jobs running on the server which are monitoring/logging processes on the server.
Is there a way to find this out - is there an operating system log for processes?
Thanks in... (4 Replies)
Discussion started by: niamh
4 Replies
3. AIX
Early this morning our sar reports show that WIO on the system was over 50% for about an hour. We also had some users complain about response time problems during this time. Is there a way I can go back and check what disks were busy during this time (something like topas but for historical data)? (1 Reply)
Discussion started by: 2dumb
1 Replies
4. Shell Programming and Scripting
i'm trying to parse a file with lines like the below where i need to get a diff on the 169-182 so that the result is 13 for instance. I was looking into using bc but am not that familiar with embedding it in a script.
john8:9. 169-182
any ideas are appreciated! (5 Replies)
Discussion started by: nlevens
5 Replies
5. Red Hat
are there linux commands or applications that i can use to find out what application was using a certain port at a certain time? there's teamquest,but it doesnt have this kind of information.
TIA. (2 Replies)
Discussion started by: bumblebee
2 Replies
6. Shell Programming and Scripting
Hello,
I have a directory /files/storage in which I have files having file name in format as follows
sabclin.yyyymmdd.0 e.g. sabclin.20110621.0 etc.
I want to copy all files that have a date in their file name i.e. yyyymmdd from today till 300 days in the past to another directory, I need... (3 Replies)
Discussion started by: srattani
3 Replies
7. What is on Your Mind?
Hello, all
I found you folks by doing searches on
linux bash scripting
From time-to-time I'm hoping to get help from the experts here.
I'm technically competent enough with Windows to run my own Tech-Support business, but I am fairly lightwieght in Linux. Over the last 3-4 years I've... (3 Replies)
Discussion started by: Tovian
3 Replies
8. What is on Your Mind?
Enjoy folks...
AT&T Archives: The UNIX Operating System - YouTube (2 Replies)
Discussion started by: wisecracker
2 Replies
LEARN ABOUT DEBIAN
byteorder
BYTEORDER(3) Linux Programmer's Manual BYTEORDER(3)
NAME
htonl, htons, ntohl, ntohs - convert values between host and network byte order
SYNOPSIS
#include <arpa/inet.h>
uint32_t htonl(uint32_t hostlong);
uint16_t htons(uint16_t hostshort);
uint32_t ntohl(uint32_t netlong);
uint16_t ntohs(uint16_t netshort);
DESCRIPTION
The htonl() function converts the unsigned integer hostlong from host byte order to network byte order.
The htons() function converts the unsigned short integer hostshort from host byte order to network byte order.
The ntohl() function converts the unsigned integer netlong from network byte order to host byte order.
The ntohs() function converts the unsigned short integer netshort from network byte order to host byte order.
On the i386 the host byte order is Least Significant Byte first, whereas the network byte order, as used on the Internet, is Most Signifi-
cant Byte first.
CONFORMING TO
POSIX.1-2001.
Some systems require the inclusion of <netinet/in.h> instead of <arpa/inet.h>.
SEE ALSO
endian(3), gethostbyname(3), getservent(3)
COLOPHON
This page is part of release 3.44 of the Linux man-pages project. A description of the project, and information about reporting bugs, can
be found at http://www.kernel.org/doc/man-pages/.
GNU
2009-01-15 BYTEORDER(3)