Python中的网络编程 [英] Network Programming in Python

查看:63
本文介绍了Python中的网络编程的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是python中的新手。我想学习并实现一个小型的b $ b网络概念。请帮我。感谢每一个帮助。


我有一个Linux Box和一台Windows PC。我希望在Windows PC上运行一个守护进程

,它可以监听一些特定的端口号。我想要从Linux机箱向Windows PC发送TCP / IP或UDP / IP数据包到
启动一些应用程序。当Windows PC收到来自Linux的这样一个数据包时,它会执行某个.exe文件。我想实现这个概念。


简而言之,我想远程将命令从Linux发送到Windows PC到

启动一个特定的应用程序。


谢谢,感谢所有帮助。

I am a newbie in python. I want to learn and implement a small
networking concept. Please help me. Every help is appreciated.

I have one Linux Box and one Windows PC. I want to have a daemon
running on Windows PC which listens on some specicif port number. I
want to send a TCP/IP or UDP/IP packet from Linux box to Windows PC to
start some application. As Windows PC recieves such a packet from Linux
Box it executes a certain .exe file. I want to implement this concept.

In short I want to remotely send command from Linux to Windows PC to
start a particular application.

Thanks, Every help is appreciated.

推荐答案

di ******** @ gmail.com 写道:
di********@gmail.com wrote:
我是python中的新手。我想学习并实现一个小型的网络概念。请帮我。感谢每一位帮助。

我有一个Linux Box和一台Windows PC。我希望在Windows PC上运行一个守护程序,它可以侦听一些特定的端口号。我希望从Linux机箱向Windows PC发送TCP / IP或UDP / IP数据包以启动某些应用程序。当Windows PC从Linux
Box收到这样的数据包时,它会执行某个.exe文件。我想实现这个概念。

简而言之,我想远程将命令从Linux发送到Windows PC以启动特定的应用程序。
I am a newbie in python. I want to learn and implement a small
networking concept. Please help me. Every help is appreciated.

I have one Linux Box and one Windows PC. I want to have a daemon
running on Windows PC which listens on some specicif port number. I
want to send a TCP/IP or UDP/IP packet from Linux box to Windows PC to
start some application. As Windows PC recieves such a packet from Linux
Box it executes a certain .exe file. I want to implement this concept.

In short I want to remotely send command from Linux to Windows PC to
start a particular application.




服务器:

http: //docs.python.org/lib/module-Si...RPCServer.html


客户:

http://docs.python.org/lib/module-xmlrpclib.html


< / F>



server:

http://docs.python.org/lib/module-Si...RPCServer.html

client:

http://docs.python.org/lib/module-xmlrpclib.html

</F>


谢谢...我会读到的......你能不能如果您有任何我可以学习的示例代码,请给我一些更好的开头或




感谢您的帮助,感谢每一个帮助

Fredrik Lundh写道:
Thanks...I will read that up...could you give me some more headstart or
if you any sample code which I can study.

Thanks for your help, every help is appreciated
Fredrik Lundh wrote:
di********@gmail.com 写道:
di********@gmail.com wrote:
我是pytho的新手ñ。我想学习并实现一个小型的网络概念。请帮我。感谢每一位帮助。

我有一个Linux Box和一台Windows PC。我希望在Windows PC上运行一个守护程序,它可以侦听一些特定的端口号。我希望从Linux机箱向Windows PC发送TCP / IP或UDP / IP数据包以启动某些应用程序。当Windows PC从Linux
Box收到这样的数据包时,它会执行某个.exe文件。我想实现这个概念。

简而言之,我想远程将命令从Linux发送到Windows PC以启动特定的应用程序。
I am a newbie in python. I want to learn and implement a small
networking concept. Please help me. Every help is appreciated.

I have one Linux Box and one Windows PC. I want to have a daemon
running on Windows PC which listens on some specicif port number. I
want to send a TCP/IP or UDP/IP packet from Linux box to Windows PC to
start some application. As Windows PC recieves such a packet from Linux
Box it executes a certain .exe file. I want to implement this concept.

In short I want to remotely send command from Linux to Windows PC to
start a particular application.



服务器:

http:// docs。 python.org/lib/module-Si...RPCServer.html

客户:

http://docs.python.org/lib/module-xmlrpclib.html

< / F>



server:

http://docs.python.org/lib/module-Si...RPCServer.html

client:

http://docs.python.org/lib/module-xmlrpclib.html

</F>






di********@gmail.com 写道:
我是python中的新手。我想学习并实现一个小型的网络概念。请帮我。每一个帮助都表示赞赏。
I am a newbie in python. I want to learn and implement a small
networking concept. Please help me. Every help is appreciated.




(哼唱蝙蝠侠主题歌取代蝙蝠侠与谷歌的话)......

http://www.amk.ca/python/howto/sockets/
http://www.devshed.com / c / a / Python / Sockets-in-Python /

真的,那太难了吗?


Python制作插上一阵微风。您可以在不到一页的代码中编写一个80'的样式HTTP

服务器。



(hums the Batman Theme song replacing the words Batman with Google)...

http://www.amk.ca/python/howto/sockets/
http://www.devshed.com/c/a/Python/Sockets-in-Python/

Really, was that so hard?

Python makes sockets a total breeze. You can write an 80''s style HTTP
server in less than a page of code.


这篇关于Python中的网络编程的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆