class

RNS::BackboneInterface

Inherits RNS::Interface < Reference < Object

Constants

AUTOCONFIGURE_MTU = true
BITRATE_GUESS = 1000000000_i64
DEFAULT_IFAC_SIZE = 16

Constructors

new(configuration : Hash(String, String), inbound_callback : Proc(Bytes, Interface, Nil) | Nil = nil)
Source

Class methods

autoconfigure_mtu?
Source

Instance methods

bind_ip
Source
bind_port
Source
clients
Source
detach

Called when the interface is being detached/removed

Source
dir_in
Source
dir_in=(dir_in : Bool)
Source
dir_out
Source
dir_out=(dir_out : Bool)
Source
incoming_connection(client_socket : TCPSocket)
Source
prefer_ipv6
Source
prefer_ipv6=(prefer_ipv6 : Bool)
Source
process_outgoing(data : Bytes)

Send data out through the interface. Subclasses must implement this.

Source
received_announce(from_spawned = false)

Record an incoming announce timestamp

Source
sent_announce(from_spawned = false)

Record an outgoing announce timestamp

Source
to_s(io : IO)

Appends a short String representation of this object which includes its class name and its object address.

class Person
  def initialize(@name : String, @age : Int32)
  end
end

Person.new("John", 32).to_s # => #<Person:0x10a199f20>
Source