JanetDocsSourcePlaygroundTutorialsI'm Feeling luckyCommunityGitHub sign in

net/socket

core-api


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

    (net/socket &opt cntype address-family)

    Creates a new unbound socket. `cntype` is an optional keyword, 
    either `:stream` (usually TCP), or `:datagram` (usually UDP). The 
    default is `:stream`. `address-family` should be `:ipv4` or 
    `:ipv6`.


0 examplesSign in to add an example
Loading...