文件名称:python-socket-udp-server-client
介绍说明--下载内容来自于网络,使用问题请自行百度
a project about python udp server/client demo, run them in different computers,you can better experience the enjoyment of network programming with python
1 this is a implementation of python udp server client model, run the code respectively in different machines, and enable that the two machines
can ping each other,to do this , you r supposed to shut down your firewalls first.
2 I run the two py file code in two machines,first, you should get to know the ip address of server machine, and replace the HOST constant
with your own server ip, then type message firstly on client machine, then you will find that the typed message in client machine shows in
the server window, and then the client waits for the response from server side ,then u type message in server window, u will find that message
show in client side ,then the server side goes into waiting for the response from client side.
3 so u implement the server / client model in UDP protocol
1 this is a implementation of python udp server client model, run the code respectively in different machines, and enable that the two machines
can ping each other,to do this , you r supposed to shut down your firewalls first.
2 I run the two py file code in two machines,first, you should get to know the ip address of server machine, and replace the HOST constant
with your own server ip, then type message firstly on client machine, then you will find that the typed message in client machine shows in
the server window, and then the client waits for the response from server side ,then u type message in server window, u will find that message
show in client side ,then the server side goes into waiting for the response from client side.
3 so u implement the server / client model in UDP protocol
(系统自动生成,下载前可以参看下载内容)
下载文件列表
src
src\tsUclnt.py
src\tsUserver.py
src\tsUclnt.py
src\tsUserver.py
本网站为编程资源及源代码搜集、介绍的搜索网站,版权归原作者所有! 粤ICP备11031372号
1999-2046 搜珍网 All Rights Reserved.