JanetDocsI'm feeling luckyGitHub sign in

net/accept



    cfunction

    (net/accept stream &opt timeout)

    Get the next connection on a server stream. This would usually be
    called in a loop in a dedicated fiber. Takes an optional timeout in
    seconds, after which will return nil. Returns a new duplex stream
    which represents a connection to the client.


0 examplesSign in to add an example
Loading...