`
xumingyong
  • 浏览: 176294 次
  • 性别: Icon_minigender_1
  • 来自: 成都
社区版块
存档分类
最新评论

erlang中类似netstat的命令

阅读更多

    > inet:i().

    Port Module   Recv  Sent   Owner    Local Address      Foreign Address     State    
    7    inet_tcp 0     0      <0.20.0> *:13660            *:*                 ACCEPTING
    9    inet_tcp 4     16     <0.18.0> localhost:48084    localhost:epmd      CONNECTED
    97   inet_tcp 62399 182817 <0.38.0> 192.168.0.98:13660 192.168.0.243:19342 CONNECTED
    Port Module Recv Sent Owner Local Address Foreign Address State

    ok

    其实erlang的好多module都有i 函数都是 取得该模块的信息的 很方便。
分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics