simple Ubuntu chat service

来源:互联网 发布:手机个人理财软件 编辑:程序博客网 时间:2024/06/03 23:38
During the test.we just use the command like "nc" 
,it is the short commad of "netcat";
usage: nc [-46bCDdhjklnrStUuvZz] [-I length] [-i interval] [-Olength]
     [-P proxy_username] [-p source_port] [-qseconds] [-s source]
     [-T toskeyword] [-V rtable] [-w timeout] [-Xproxy_protocol]
     [-x proxy_address[:port]] [destination][port]


First step : we we must create a command line  ofinstant message transfer service.our ip is 192.168.1.122
 for example : 
      nc -l -vv -p 11119

Second step :use an other ubuntu pc and open the ternamal ,inputthe command line like this
 nc 192.168.1.122:11119

then we can input something and the other clientwill  show our input ,just like a instant chatclient
0 0
原创粉丝点击