RNS::LocalClientInterface
Inherits RNS::Interface < Reference < Object
Constants
AUTOCONFIGURE_MTU = true
HW_MTU_DEFAULT = 262144
RECONNECT_WAIT = 8
Constructors
Instance methods
connect
Sourcedir_in
Sourcedir_out
Sourceforce_bitrate
Sourcenever_connected
Sourceprocess_outgoing(data : Bytes)
Send data out through the interface. Subclasses must implement this.
receives?
Sourcereconnect
Sourcereconnecting
Sourceshould_ingress_limit?
Determine when an interface should activate ingress limiting. Subclasses may override for different behavior.
socket_path
Sourcetarget_ip
Sourcetarget_port
Sourceteardown(nowarning : Bool = false)
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>
writing
Source