์ด์ ๋ ์ด๋ด ํ์๋ ์์ ๊ฒ ๊ฐ์๋ฐ ๊ทธ๋ ๊ทธ ์์ ์ ์ ์ด๋ฐ ๊ฑฐ์ ์๋ฏผํ๋์ง ใ ใ ใ ๋คํธ์ํฌ ํ๋ก๊ทธ๋จ ์ ์ํ ๋, #include ๋ฅผ ์ด์ฉํด์ y = htons(x); ๋ y = htonl(x);๋ฅผ ์ฌ์ฉํ๋๋ฐ, ์ ๊ฒ ์ผ๋ง๋ ๋๋ฆฐ ๊ฑธ๊น? ํ ๋ฒ ์๊ฐํด๋ดค๋ค. /* Using Winsock2 normaly */ #include #include using namespace std; int main() { unsigned short x = 0x3399; unsigned short y; unsigned int a = 0xff0102ff; unsigned int b; cout