[PerlChina] 求助如何可以读取邮箱中邮件啊

truncatei truncatei at gmail.com
Wed Jan 30 19:47:08 PST 2008


Perl可以写服务器程序的,看看IO:Socket模块。

   1. 在服务器上创建一个服务器进程,一直监听来自某个端口的请求
   2. 客户端发起请求,连接到步骤1中使用的端口,连接成功后发送一些数据,比如密码和需要执行的命令
   3. 服务器端收到客户的请求数据,验证密码,通过system调用执行命令,返回状态给客户端,如果可以取到运行后的结果数据,返回数据
   4. 数据传输格式自己定义,客户端和服务器都遵守约定就好


2008/1/31 Steven Zhu <stevenzyk at gmail.com>:

> 这样的话太麻烦了,你所说的监听这个如何做哪,是否可以提供个思路或者例子啊?
> perl不是很熟,呵呵,谢谢!
>



-- 
如果觉得无聊,您不妨访问Google Reader消遣 http://www.google.com/reader/view
要尝试黑版本Google,请访问
http://www.google.com/custom?q=&sa=Search&client=pub-4021907304270164&forid=1&channel=7519554017&ie=UTF-8&oe=UTF-8&cof=GALT%3A%23FF9900%3BGL%3A1%3BDIV%3A%230033FF%3BVLC%3ACC9900%3BAH%3Acenter%3BBGC%3A000000%3BLBGC%3A000000%3BALC%3AFFFFFF%3BLC%3AFFFFFF%3BT%3ACCCCCC%3BGFNT%3A33CC00%3BGIMP%3A33CC00%3BFORID%3A1%3B&hl=en
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.pm.org/pipermail/china-pm/attachments/20080131/02e18265/attachment-0001.html 


More information about the China-pm mailing list