java - SOCKET通讯处理程序,用PERL做合适吗?
阿神
阿神 2017-04-17 16:54:18
0
2
516

服务端的程序是JAVA的

现在要开发在多个客户机上运行的客户端程序,双方基于SOCK进行通讯。
这些客户机有的是LINUX,有的是UNIX
用PERL来写这个客户端程序合适吗?
因为这个客户端程序除了要与服务端通讯外,还要负责启动/停止其它的应用程序,比如JAVA写的程序、其它PERL程序、C程序。

GITHUB上,或者哪里能有轻量级的SOCKET客户端程序参考的?

阿神
阿神

闭关修行中......

reply all (2)
Peter_Zhu

Use Python. It has powerful functions and fast development speed. The built-in socket library can complete most of the needs.
Of course, if there is a tradition of using Perl in the team, it is better to continue Perl, so the maintenance cost will be much lower.

    Ty80

    If you want concurrency, consider http://search.cpan.org/dist/AnyEvent/lib/AnyEvent/Socket.pm
    If you don’t want concurrency, consider http://search.cpan.org/~gbarr/IO-1.25/lib/ IO/Socket/INET.pm is enough
    You can search a lot of tcp client examples on google

    http://xmodulo.com/how-to-write-simple-tcp-server-and-client-in-perl.html

      Latest Downloads
      More>
      Web Effects
      Website Source Code
      Website Materials
      Front End Template
      About us Disclaimer Sitemap
      php.cn:Public welfare online PHP training,Help PHP learners grow quickly!