RNS::WeaveInterfacePeer
Inherits RNS::Interface < Reference < Object
Represents an individual Weave peer connection. Handles per-peer packet processing with deduplication.
Constructors
Instance methods
_online
Sourcedir_in
Sourcedir_out
Sourceendpoint_addr
Sourceonline
Sourcepeer_addr
Sourceprocess_outgoing(data : Bytes)
Send data out through the interface. Subclasses must implement this.
teardown
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>
via_switch_id
Source