Module Core_extended.Procfs.Net.Tcp

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

type t = {
sl : int;
local_address : Core.Unix.Inet_addr.t;
local_port : Extended_unix.Inet_port.t;
remote_address : Core.Unix.Inet_addr.t;
remote_port : Extended_unix.Inet_port.t option;
state : Tcp_state.t;
tx_queue : int;
rx_queue : int;
tr : int;
tm_when : int;
retrnsmt : int;
uid : int;
timeout : int;
inode : Process.Inode.t;
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.