Distributions
› Ubuntu
› Fedora
› CentOS
中文资源站
› 网易开源镜像站
koebehshian
V2EX  ›  Linux

有没有将接收 TCP 流,按行分割,转成 UDP 的 C 语言库

  •  
  •   koebehshian · Dec 17, 2018 · 3380 views
    This topic created in 2887 days ago, the information mentioned may be changed or developed.

    嵌入式环境使用,所以要轻量一点。

    pifuant
    pifuant
    Dec 17, 2018
    1
    自己写个解析也不难啊
    LGA1150
    LGA1150
    Dec 17, 2018 via Android
    2
    “按行分割”是什么?
    如果想要 IP over UDP,内核自带的 Foo-over-UDP 了解一下 https://lwn.net/Articles/614348/
    janxin
    janxin
    Dec 17, 2018
    3
    @LGA1150 其实很可能他的协议是个文本协议...
    liyvhg
    liyvhg
    Dec 17, 2018 via Android
    4
    socat 可以将 TCP 转成 UDP
    whileFalse
    whileFalse
    Dec 17, 2018
    5
    自己写一个。老简单了。
    不过你确定你的一行不会太大吗?
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   4611 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 38ms · UTC 06:26 · PVG 14:26 · LAX 22:26 · JFK 01:26
    ♥ Do have faith in what you're doing.