package core_extended

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

/proc/net/tcp, or what netstat or lsof -i parses.

type t = {
  1. sl : int;
  2. local_address : Core.Unix.Inet_addr.t;
  3. local_port : Extended_unix.Inet_port.t;
  4. remote_address : Core.Unix.Inet_addr.t;
  5. remote_port : Extended_unix.Inet_port.t option;
  6. state : Tcp_state.t;
  7. tx_queue : int;
  8. rx_queue : int;
  9. tr : int;
  10. tm_when : int;
  11. retrnsmt : int;
  12. uid : int;
  13. timeout : int;
  14. inode : Process.Inode.t;
  15. rest : string;
}
include sig ... end
val rest : t -> string
val inode : t -> Process.Inode.t
val timeout : t -> int
val uid : t -> int
val retrnsmt : t -> int
val tm_when : t -> int
val tr : t -> int
val rx_queue : t -> int
val tx_queue : t -> int
val state : t -> Tcp_state.t
val remote_port : t -> Extended_unix.Inet_port.t option
val remote_address : t -> Core.Unix.Inet_addr.t
val local_port : t -> Extended_unix.Inet_port.t
val local_address : t -> Core.Unix.Inet_addr.t
val sl : t -> int
module Fields : sig ... end
val of_line : string -> t option

These don't do any IO and should be async-ok

val of_line_exn : string -> t
val load_exn : unit -> t list

This does IO and is not async-ok.

OCaml

Innovation. Community. Security.