package tcpip

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

Install

dune-project
 Dependency

Authors

Maintainers

Sources

tcpip-7.1.2.tbz
sha256=96b6aeafa35f143f7275d1becb6d639472adf3680b8180416de765b6581c466d
sha512=3f873c986de5c58df72db2953c6b2a6319963dbbbd0781b55c2878fd1eaa081ebb7cecbee595db7cb3680a6f438904f98cb69ca17e70c7a6d2d1f61277e929bd

doc/tcpip.udpv6-socket/Udpv6_socket/index.html

Module Udpv6_socketSource

Sourceval src : Logs.src
Sourcetype ipaddr = Ipaddr.V6.t
Sourcetype callback = src:ipaddr -> dst:ipaddr -> src_port:int -> Cstruct.t -> unit Lwt.t
Sourcetype t = {
  1. interface : Unix.inet_addr;
  2. listen_fds : (Unix.inet_addr * int, Lwt_unix.file_descr) 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_udpv6_listening_fd : ?preserve:bool -> t -> int -> (bool * Lwt_unix.file_descr) Lwt.t
Sourcetype error = [
  1. | `Sendto_failed
]
Sourceval pp_error : Format.formatter -> [< `Sendto_failed ] -> unit
Sourceval close : Lwt_unix.file_descr -> unit Lwt.t
Sourceval connect : 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.V6.t -> dst_port:int -> t -> Cstruct.t -> (unit, [> `Sendto_failed ]) result Lwt.t
Sourceval unlisten : t -> port:int -> unit
Sourceval listen : t -> port:int -> (src:Ipaddr.V6.t -> dst:Ipaddr.V6.t -> src_port:int -> Cstruct.t -> unit Lwt.t) -> unit
OCaml

Innovation. Community. Security.