Ithute linh tsa litaelo tsa Linux

Lebitso

htonl, htons, itemhl, hhhhhhhhhhhhhhhhhhh -hhhhhhhhhhhhhhhhhhhhhhhhhhhhhhh

Lintlhakiso

#include uint32_t htonl (uint32_t hostlong ); uint16_t htons (u -16_t hostshort ); uint32_t ntohl (uint32_t netlong ); uint16_t ntho (uint16_t netshort );

Tlhaloso

Mosebetsi oa htonl () o fetola motho ea sa ngolisoang ho lula hostlong ho tsoa ho moetapele oa khoebo ea ho amohela marang-rang.

The htons () e sebetsana le ho fetola e sa ngolisoeng e fane ka hostshort e fokolang e fokolang ho tloha ho e le hore e tsamaisoe e le hore e tsamaisane.

Thehlhl () e sebetsa e fetola netlong e sa ngolisoeng ho tloha mocheng oa ho etsa marang-rang ho ea laela ho laela.

Sehlooho sa () se fetola ba sa ngolisoeng ka tlaase ea netshort e sa lefshoang ho tloha mocheng oa lits'ebeletso oa marang-rang ho amohela taelo ea tote.

Ka 80808 mookameli oa mabotho a mangata ke oa bohlokoa ka ho fetisisa, ha marang-rang a laela, ha a sebelisoa Inthaneteng, ke oa bohlokoa ka ho fetisisa.

E lumellana le

BSD 4.3