package tcpip

  1. Overview
  2. Docs
OCaml TCP/IP networking stack, used in MirageOS

Install

dune-project
 Dependency

Authors

Maintainers

Sources

tcpip-8.2.0.tbz
sha256=916e688aba897676c444db8129f4963ad739f8d1be631d9e009c6228b4b7d6ed
sha512=a8f5fa8f7e96758075c93211132839950477b756fba490207a7d630f2766757bbb44bbdd02e2b1f2b4a7d83d4d8b10d34cb03903bbd516e7d7c1a9a987eb1915

doc/tcpip.udpv4v6-socket/Udpv4v6_socket/index.html

Module Udpv4v6_socketSource

Sourceval src : Logs.src
Sourcetype ipaddr = Ipaddr.t
Sourcetype callback = src:ipaddr -> dst:ipaddr -> src_port:int -> Cstruct.t -> unit Lwt.t
Sourceval any_v6 : Unix.inet_addr
Sourcetype t = {
  1. interface : [ `Any | `Ip of Unix.inet_addr * Unix.inet_addr | `V4_only of Unix.inet_addr | `V6_only of Unix.inet_addr ];
  2. listen_fds : (int, Lwt_unix.file_descr * Lwt_unix.file_descr option) Hashtbl.t;
  3. mutable switched_off : unit Lwt.t;
}
Sourceval set_switched_off : t -> unit Lwt.t -> unit
Sourceval ignore_canceled : exn -> unit Lwt.t
Sourceval get_udpv4v6_listening_fd : ?preserve:bool -> ?v4_or_v6:[< `Both | `V4 | `V6 Both ] -> t -> int -> (bool * Lwt_unix.file_descr list) Lwt.t
Sourcetype error = [
  1. | `Sendto_failed
  2. | `Different_ip_version
]
Sourceval pp_error : Format.formatter -> [< `Different_ip_version | `Sendto_failed ] -> unit
Sourceval close : Lwt_unix.file_descr -> unit Lwt.t
Sourceval connect : ipv4_only:bool -> ipv6_only:bool -> Ipaddr.V4.Prefix.t -> Ipaddr.V6.Prefix.t option -> t Lwt.t
Sourceval disconnect : t -> unit Lwt.t
Sourceval input : 'a -> src:'b -> dst:'c -> 'd -> unit Lwt.t
Sourceval write : ?src:'a -> ?src_port:int -> ?ttl:'b -> dst:Ipaddr.t -> dst_port:int -> t -> Cstruct.t -> (unit, [> `Different_ip_version | `Sendto_failed ]) result Lwt.t
Sourceval unlisten : t -> port:int -> unit
Sourceval listen : t -> port:int -> (src:Ipaddr.t -> dst:('a, Ipaddr.V6.t) Ipaddr.v4v6 -> src_port:int -> Cstruct.t -> unit Lwt.t) -> unit
OCaml

Innovation. Community. Security.