RNS::BackboneClientInterface
Inherits RNS::Interface < Reference < Object
Constants
AUTOCONFIGURE_MTU = true
BITRATE_GUESS = 100000000_i64
DEFAULT_IFAC_SIZE = 16
INITIAL_CONNECT_TIMEOUT = 5
RECONNECT_MAX_TRIES = nil
RECONNECT_WAIT = 5
SYNCHRONOUS_START = true
TCP_PROBE_AFTER = 5
TCP_PROBE_INTERVAL = 2
TCP_PROBES = 12
TCP_USER_TIMEOUT = 24
Constructors
Class methods
autoconfigure_mtu?
SourceInstance methods
dir_in
Sourcedir_out
Sourcei2p_tunneled
Sourceinitiator?
Sourcenever_connected
Sourceprefer_ipv6
Sourceprocess_outgoing(data : Bytes)
Send data out through the interface. Subclasses must implement this.
reconnect
Sourcereconnecting
Sourcestart_read_loop
Sourcetarget_ip
Sourcetarget_port
Sourceteardown
Tear down the interface, releasing any resources (sockets, fibers, etc.). Subclasses should override to close their specific resources.
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>
wants_tunnel
Source