package tcpip

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

Module Udpv4_socketSource

Sourceval src : Logs.src
Sourcetype ipaddr = Ipaddr.V4.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_udpv4_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.V4.Prefix.t -> 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.V4.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.V4.t -> dst:Ipaddr.V4.t -> src_port:int -> Cstruct.t -> unit Lwt.t) -> unit
OCaml

Innovation. Community. Security.