python 网络(1、TCP套接字服务器-客户端)

python 网络(一、TCP套接字服务器-客户端)DEVICEeth0ONBOOTyesBOOTPROTOdhcp(3) 重启网络服务service ne

python 网络(一、TCP套接字服务器-客户端)
DEVICE=eth0ONBOOT=yesBOOTPROTO=dhcp

(3) 重启网络服务

service network restart

?

(4) 注意需要把服务器端的防火墙关闭

service iptables stop

?

2. TCP socket服务器

?

?

3. TCP socket客户机

?

?

?

?

?

?

?