Aprann Linux Kòmandman-ntohs yo

Non

htonl, htons, ntohl, ntohs - konvèti valè ant lame ak lòd rezo byte

Rezime

# mete uint32_t htonl (uint32_t hostlong ); uint16_t htons (uint16_t hostshort ); uint32_t ntohl (uint32_t netlong ); uint16_t ntohs (uint16_t netshort );

Deskripsyon

Htonl () fonksyon an konvèti tout antye hostlong ki soti nan lame bay lòd pou lòd rektab rezo a.

Fonksyon yo hton () konvèti hostshort nonb antye ki nonmen an soti nan lame byte lòd nan lòd rezo a.

Fonksyon an ntohl () konvèti nonlong nonbong nonbong ki soti nan rezo a bay lòd pou lame bay lòd.

Ntohs () fonksyon an konvèti netshort nonb antye ki nonmen non an soti nan lòd rektè rektif pou lame lòd byte.

Sou i80x86 lòd lame a se pi piti Byte siyifikatif premye, Lè nou konsidere ke lòd la rezo rezo, jan yo itilize sou entènèt la, se pi siyifikatif byte an premye.

Konfòme yo

BSD 4.3