Sign in

    moodtcpcli

    Zero-dependency TCP network primitives for MoonBit - ported from rstcpcli

    tcp
    network
    ffi
    linux
    native
    Download zip
    Author
    Version
    0.1.0
    License
    Apache-2.0
    Last updated
    3 months ago
    Downloads
    25

    No dependencies

    #moodtcpcli — Zero-dependency TCP primitives for MoonBit

    Pure C FFI TCP network primitives for MoonBit, ported from rstcpcli.

    #Source

    This package is ported from the TCP connectivity features of rstcpcli (Rust CLI network tool).

    • Gitea (upstream): https://git.t2be.cn/aspnmy/rstcpcli
    • GitHub mirror: https://github.com/aspnmy/rstcpcli

    #API

    FunctionDescription
    tcp_ping(host, port)TCP connectivity check
    http_get(url)HTTP GET request
    http_post(url, body)HTTP POST request
    listen_port(port)Listen on TCP port

    #License

    Apache-2.0