package apero-net

  1. Overview
  2. Docs
include module type of struct include Endpoint end
module IpEndpoint = Endpoint.IpEndpoint

Module representing an IP endpoint.

module EthEndpoint = Endpoint.EthEndpoint

TODO: This needs to be implemented

module BleEndpoint = Endpoint.BleEndpoint

TODO: This needs to be implemented

module Endpoint = Endpoint.Endpoint
include module type of struct include Iplocator end
module IpLocator = Iplocator.IpLocator
module UdpLocator = Iplocator.UdpLocator
module TcpLocator = Iplocator.TcpLocator
module WebSockLocator = Iplocator.WebSockLocator
include module type of struct include Lcodec end
val decode_locator : Abuf.t -> Locator.Locator.t option
val encode_locator : Locator.Locator.t -> Abuf.t -> unit
val decode_locators : Abuf.t -> Locator.Locators.t
val encode_locators : Locator.Locators.t -> Abuf.t -> unit
include module type of struct include Locator end
module Locator = Locator.Locator
module Locators = Locator.Locators
include module type of struct include Net end
val read : Lwt_unix.file_descr -> Abuf.t -> int -> int Lwt.t

read fd buf len reads at most len bytes out of the file descriptior fd in to the buffer buf at index w_pos buf. Returns the actual number of bytes read.

val read_all : Lwt_unix.file_descr -> Abuf.t -> int -> int Lwt.t

read fd buf len reads len bytes out of the file descriptior fd in to the buffer buf at index w_pos buf. Returns the actual number of bytes read.

val write : Lwt_unix.file_descr -> Abuf.t -> int Lwt.t

write fd buf writes at most readable_bytes buf bytes from the buffer buf at index r_pos buf to the file descriptor fd. Returns the number of bytes actually written.

val write_all : Lwt_unix.file_descr -> Abuf.t -> int Lwt.t

write fd buf writes readable_bytes buf bytes from the buffer buf at index r_pos buf to the file descriptor fd. Returns the number of bytes actually written.

val write_vle : Lwt_unix.file_descr -> Apero.Vle.t -> int Lwt.t
val safe_close : Lwt_unix.file_descr -> unit Lwt.t
include module type of struct include NetService end
type mtu = NetService.mtu =
  1. | Unlimited
  2. | Limited of int
module Id = NetService.Id
module TxSession = NetService.TxSession
module type S = NetService.S
include module type of struct include TcpService end
module TcpService = TcpService.TcpService
include module type of struct include TcpServiceES end
module TcpServiceES = TcpServiceES.TcpServiceES
include module type of struct include NetServiceTcp end
module NetServiceTcp = NetServiceTcp.NetServiceTcp
include module type of struct include NetServiceWebSock end
module NetServiceWebSock = NetServiceWebSock.NetServiceWebSock
OCaml

Innovation. Community. Security.