| Hauptindex | Abschnitt 3 | English | 日本語 | Optionen |
#include <netinet/in.h>unsigned long int htonl(unsigned long int hostlong);
unsigned short int htons(unsigned short int hostshort);
unsigned long int ntohl(unsigned long int netlong);
unsigned short int ntohs(unsigned short int netshort);
Die Funktion htons() konvertiert die Kurzganzzahl hostshort Rechner- nach Netzwerk-Byteordnung.
Die Funktion ntohl() konvertiert die Langganzzahl netlong von Netzwerk- nach Rechner-Byteordnung.
Die Funktion ntohs() konvertiert die Kurzganzzahl netshort von Netzwerk- nach Rechner-Byteordnung.
Auf dem i80x86 steht in der Rechnerbyteordnung das niederwertigste Byte zuerst, wogegen in der im Internet benutzten Netzwerkbyteordnung das höchstwertige Byte zuerst steht.
| 29. Dezember 1996 | BYTEORDER (3) | BSD |
| Hauptindex | Abschnitt 3 | English | 日本語 | Optionen |
Bitte richten Sie Ihre Kommentare zu diesem Handbuch Seite Service, Ben Bullock. Privacy policy.
| “ | A typical Unix /bin or /usr/bin directory contains a hundred different kinds of programs, written by dozens of egotistical programmers, each with its own syntax, operating paradigm, rules of use ... strategies for specifying options, and different sets of constraints. | ” |
| — The Unix Haters' handbook | ||