socat 类似 telnet ,但是支持多种协议。
比如要 debug unix domain socket 的 server ,用下面的命令就可以得到和 telnet 一样的效果。
[code]
bash$ ./socat unix-connect:/tmp/my.sock stdin
[/code]
比如要 debug unix domain socket 的 server ,用下面的命令就可以得到和 telnet 一样的效果。
[code]
bash$ ./socat unix-connect:/tmp/my.sock stdin
[/code]