ULOS Manual Pages - network(2) | Back
NAME
  network - Cynosure networking API
DESCRIPTION
  network is a simple, protocol-agnostic networking API provided by the Cynosure kernel.
  The socket and request functions each take a url as their first argument;  this URL must be in the following format:
    protocol://specifier
  If the protocol is unsupported or unspecified, the function will return an error.
FUNCTIONS
  socket(url:string, ...): socketstream
    Attempts to open a TCP or TCP-like socket at the specified url.
  request(url:string, ...): request
    Requests the specified url and returns the response as a stream.
  hostname(): string
    Returns the current system hostname.
  sethostname(name:string): boolean
    Sets the system hostname for this boot.  Requires the HOSTNAME permission (see acls(2)).
COPYRIGHT
  Cynosure kernel copyright (c) 2021 Ocawesome101 under the DSLv2.
REPORTING BUGS
  Bugs should be reported at https://github.com/ocawesome101/oc-cynosure/issues.