JanetDocsPlaygroundI'm feeling luckyGitHub sign in

net/shutdown



    cfunction
    src/core/net.c on line 537, column 1

    (net/shutdown stream &opt mode)

    Stop communication on this socket in a graceful manner, either in 
    both directions or just reading/writing from the stream. The `mode` 
    parameter controls which communication to stop on the socket.

    * `:wr` is the default and prevents both reading new data from the 
      socket and writing new data to the socket.
    * `:r` disables reading new data from the socket.
    * `:w` disable writing data to the socket.

    Returns the original socket.


0 examplesSign in to add an example
Loading...