class

RNS::UDPInterface

Inherits RNS::Interface < Reference < Object

Constants

BITRATE_GUESS = 10000000_i64
DEFAULT_IFAC_SIZE = 16

Constructors

new(configuration : Hash(String, String), &block : Bytes, Interface -> )
Source
new(configuration : Hash(String, String))
Source

Instance methods

bind_ip
Source
bind_port
Source
dir_in

Direction flags (instance-level, matching Python's self.IN / self.OUT)

Source
dir_in=(dir_in : Bool)

Direction flags (instance-level, matching Python's self.IN / self.OUT)

Source
dir_out
Source
dir_out=(dir_out : Bool)
Source
forward_ip
Source
forward_port
Source
forwards?
Source
process_incoming(data : Bytes)
Source
process_outgoing(data : Bytes)

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

Source
receives?
Source
teardown

Tear down the interface, releasing any resources (sockets, fibers, etc.). Subclasses should override to close their specific resources.

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