.\" -*- coding: UTF-8 -*- '\" t .\" Copyright 1993 David Metcalfe (david@prism.demon.co.uk) .\" .\" SPDX-License-Identifier: Linux-man-pages-copyleft .\" .\" References consulted: .\" Linux libc source code .\" Lewine's _POSIX Programmer's Guide_ (O'Reilly & Associates, 1991) .\" 386BSD man pages .\" Modified Sat Jul 24 21:29:05 1993 by Rik Faith (faith@cs.unc.edu) .\" Modified Thu Jul 26 14:06:20 2001 by Andries Brouwer (aeb@cwi.nl) .\" .\"******************************************************************* .\" .\" This file was generated with po4a. Translate the source file. .\" .\"******************************************************************* .TH BYTEORDER 3 "2023년 7월 20일" "Linux man\-pages 6.05.01" .SH 이름 htonl, htons, ntohl, ntohs \-호스트와 네트웍 바이트 순서 사이로 값들을 바꾼다. .SH 라이브러리 표준 C 라이브러리 (\fIlibc\fP, \fI\-lc\fP) .SH 요약 .nf \fB#include \fP .PP \fBuint32_t htonl(uint32_t \fP\fIhostlong\fP\fB);\fP \fBuint16_t htons(uint16_t \fP\fIhostshort\fP\fB);\fP .PP \fBuint32_t ntohl(uint32_t \fP\fInetlong\fP\fB);\fP \fBuint16_t ntohs(uint16_t \fP\fInetshort\fP\fB);\fP .fi .SH 설명 The \fBhtonl\fP() function converts the unsigned integer \fIhostlong\fP from host byte order to network byte order. .PP The \fBhtons\fP() function converts the unsigned short integer \fIhostshort\fP from host byte order to network byte order. .PP The \fBntohl\fP() function converts the unsigned integer \fInetlong\fP from network byte order to host byte order. .PP The \fBntohs\fP() function converts the unsigned short integer \fInetshort\fP from network byte order to host byte order. .PP i386에서, 호스트 바이트 순서는 Least Significant Byte가 앞에 오고, 반면에 Internet에서 사용되고 있는 네트웍 바이트 순서는 Most Significant Byte가 앞에 온다. .SH 속성 이 섹션에서 사용되는 용어에 대한 설명은 \fBattributes\fP(7)을 참조하십시오. .TS allbox; lbx lb lb l l l. 상호 작용 속성 번호 T{ .na .nh \fBhtonl\fP(), \fBhtons\fP(), \fBntohl\fP(), \fBntohs\fP() T} Thread safety MT\-Safe .TE .sp 1 .SH 표준 POSIX.1\-2008. .SH 이력 POSIX.1\-2001. .SH "추가 참조" \fBbswap\fP(3), \fBendian\fP(3), \fBgethostbyname\fP(3), \fBgetservent\fP(3) .PP .SH 번역 이 매뉴얼 페이지의 한국어 번역은 다음에 의해 편집되었습니다: 정강훈 . .PP 이 번역은 무료 문서입니다. 저작권 조건에 대해서는 .UR https://www.gnu.org/licenses/gpl-3.0.html GNU General Public License 버전 3 .UE 이상을 읽으십시오. 책임이 없습니다. .PP 이 매뉴얼 페이지의 번역에서 오류를 발견하면 .MT translation-team-ko@googlegroups.com .ME 로 이메일을 보내주십시오.