package core_unix

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type

Utility functions for dealing with the environment.

module Unix := Core_unix
val parse_ssh_client : unit -> [ `From of Unix.Inet_addr.t | `Nowhere ] Core.Or_error.t

parse_ssh_client reads the SSH_CLIENT environment variable, retrieving the IP from which you are currently sshing.