package tcpip

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

Install

dune-project
 Dependency

Authors

Maintainers

Sources

tcpip-v6.4.0.tbz
sha256=6e32bf540d291e9b7325cb3dd00df2f695533e009c46ea534d5518b9492c7348
sha512=2e9f9ca2eeac637599eb48e087b4632598539f1c76f9251758995c7eedeb723f8b951d557a2a53b85a58d50a04e68e15598581f88fca8997733e800fcfca422b

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.