Presentation is loading. Please wait.

Presentation is loading. Please wait.

Chapter 3 소켓 주소 구조체 다루기 u-Network Design Lab 2.

Similar presentations


Presentation on theme: "Chapter 3 소켓 주소 구조체 다루기 u-Network Design Lab 2."— Presentation transcript:

1 Chapter 3 소켓 주소 구조체 다루기 u-Network Design Lab 2

2 Question 1 Try to convert Host Byte <-> Network Byte using hton*() & ntoh*() Try to use Winsock API (refer text book page 72) WSAHton*() WSANtoh*() u_short i = 0x1357 u_long j = 0x ; u-Network Design

3 Sample Output Question 1
u-Network Design

4 Question 2 Given a Domain Name, return ALL IP Addresses and aliases of the domain name. Try Domain Name: u-Network Design

5 Sample Output Question 2
u-Network Design

6 Question 3 Converts an IP address in ASCII dotted-decimal format to 32-bit binary format Converts 32-bit binary format (network byte ordering) back to IP address in ASCII dotted- decimal format IP Address: u-Network Design

7 Sample Output Question 3
u-Network Design

8 Thank you u-Network Design


Download ppt "Chapter 3 소켓 주소 구조체 다루기 u-Network Design Lab 2."

Similar presentations


Ads by Google