Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ netutil(3) — Purdue Xinu

Media Vault

Software Library

Restoration Projects

Artifacts Sought

NETUTIL(3)

NAME

netutil − Network utilities hs2net, net2hs, hl2net, net2hl, vax2hl, hl2vax

SYNOPSIS

short net2hs(s)
short hs2net(s)
long net2hl(l)
long hl2net(l)
long vax2hl(l)
long hl2vax(l)
short s;
long l;

DESCRIPTION

These routines map binary integer data between network standard byte order and local host byte order.  In the description, the term short refers to a 2-octet (16-bit) binary value, whether two’s complement signed or unsigned, and the term long refers to a 4-octet (32-bit) value.  The individual routines are:

net2hs
Converts a short item from network byte order to host byte order.

hs2net
Converts a short item from host byte order to network byte order.

net2hl
Converts a long item from network byte order to host byte order.

hl2net
Converts a long item from host byte order to network byte order.

vax2hl
Converts a long item from VAX byte order to host byte order (used in communication with a file server running on a VAX). 

hl2vax
Converts a long from host byte order to VAX byte order (used in communication with a file server running on a VAX). 

No conversion is needed for character strings because the local host order on most machines agrees with network standard byte order (i.e., the string extends upward in the memory address space). 

December 01, 1986  —  Xinu Programmer’s Manual

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026