JanetDocsPlaygroundI'm feeling luckyGitHub sign in

net/connect



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

    (net/connect host port &opt type bindhost bindport)

    Open a connection to communicate with a server. Returns a duplex 
    stream that can be used to communicate with the server. Type is an 
    optional keyword to specify a connection type, either :stream or 
    :datagram. The default is :stream. Bindhost is an optional string 
    to select from what address to make the outgoing connection, with 
    the default being the same as using the OS's preferred address.


0 examplesSign in to add an example
Loading...