package mnet

  1. Overview
  2. Docs
An implementation of TCP (Transmission Control Protocol) in OCaml for Miou & Solo5

Install

dune-project
 Dependency

Authors

Maintainers

Sources

mnet-0.0.7.tbz
sha256=efcef0d0452c6b6b5d5a618bff47250fd873d4cd317d0a51ee349c4a5cb84d9a
sha512=5c0d2b5a1967c592138525f6f706457b45833f4f86a98c7cede0128edce4104e227361025bacc4c888bf73499c8438df95d51f990f93515cd4a2ce5f89e01caa

doc/mnet.icmpv4/ICMPv4/Packet/index.html

Module ICMPv4.PacketSource

Sourcetype 'a t = {
  1. code : int;
  2. kind : 'a kind;
  3. checksum : int;
  4. shdr : 'a;
}
Sourceand 'a kind =
  1. | Echo_reply : id_and_seq kind
  2. | Destination_unreachable : next_hop_mtu kind
  3. | Source_quench : unused kind
  4. | Redirect : Ipaddr.V4.t kind
  5. | Echo_request : id_and_seq kind
  6. | Time_exceeded : unused kind
  7. | Parameter_problem : pointer kind
  8. | Timestamp_request : id_and_seq kind
  9. | Timestamp_reply : id_and_seq kind
  10. | Information_request : id_and_seq kind
  11. | Information_reply : id_and_seq kind
Sourceand id_and_seq = int * int
Sourceand next_hop_mtu =
  1. | Hop of int
Sourceand pointer =
  1. | Pointer of int
Sourceand unused =
  1. | Unused
Sourceand packet =
  1. | Packet : 'a t -> packet
Sourcetype 'a message = 'a t
Sourceval unused : unused Bin.t
Sourceval id_and_seq : (int * int) Bin.t
Sourceval next_hop_mtu : next_hop_mtu Bin.t
Sourceval pointer : pointer Bin.t
Sourceval body : 'a kind -> 'a Bin.t -> 'a t Bin.t
Sourceval packet : packet Bin.t
Sourceval decode_packet : string -> ?len:??? -> Bin.pos -> packet
Sourceval encode_packet : packet -> string
Sourceval decode : ?off:??? -> string -> (packet * string, [> `Invalid_ICMPv4_packet ]) result
Sourceval to_bytes : 'a t -> bytes