TCP/IP Socket Programming - 01 IP/Port/Socket

1. Introduction of IP Address

 

ipconfig

ifconfig ma1 ipaddr 192.168.0.12 netmask 255.255.255.0

ping www.baidu.com   ; find baidu`s ip

2. Ports

IP Address: Address Number

Ports: Room Number.

3. Sockets

socket.socket(): create a socket,

4. Direct and Reverse Connections

发布了204 篇原创文章 · 获赞 49 · 访问量 8万+

猜你喜欢

转载自blog.csdn.net/f2157120/article/details/104742958