module Repeater: sig
.. end
A Repeater (or HUB) is a device that receives Eth frames and blindly mirrors them
to several locations (but the one from which the frame came from)
type
port = {
|
mutable emit : Bitstring.bitstring -> unit ; |
}
type
t = {
}
val make : int -> t
val forward_from : int -> t -> Bitstring.bitstring -> unit
val write : int -> t -> Bitstring.bitstring -> unit
val set_read : int -> t -> (Bitstring.bitstring -> unit) -> unit
val to_dev : int -> t -> Tools.dev
Turns a port into a device
val t_printer : 'a -> 'b BatInnerIO.output -> t -> unit