zerh925
V2EX  ›  问与答

如何获得 TCP/IP 发送的数据包内容

  •  
  •   zerh925 · Jul 7, 2015 · 2217 views
    This topic created in 4170 days ago, the information mentioned may be changed or developed.

    我这边有一台机器人,内置了gohead webserver,可以通过ethernet端口连接,然后在PC端打开机器人的ip地方访问到机器人的控制网页,稍微看了下该网页的源码,有JS。我现在不能直接拿到该机器人的TCP/IP的API,但是我想二次开发该机器人,如果我能获得每次PC端发送的数据,是不是就能拿到PC端发送的数据包内容,然后在别的语言下发送该数据包达到控制机器人的效果了?如果可以,应该怎么做呢?谢谢

    3 replies  •  2015-07-07 16:04:01 +08:00
    mhycy
    mhycy
    Jul 7, 2015❤️1
    1
    有网页的话直接做HTTP请求会更方便。。
    TCP的话 wireshark 能满足需求
    cmheia
    cmheia
    Jul 7, 2015❤️1
    3
    为何要跑到协议栈里面,fiddler 就够了啊……
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   924 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 26ms · UTC 22:08 · PVG 06:08 · LAX 14:08 · JFK 17:08
    ♥ Do have faith in what you're doing.