class

PlaceOS::Driver::TransportUDP

Inherits PlaceOS::Driver::Transport < Reference < Object

Constants

MULTICASTRANGEV4 = IPAddress.new("224.0.0.0/4")
MULTICASTRANGEV6 = IPAddress.new("ff00::/8")

Constructors

new(queue : PlaceOS::Driver::Queue, ip : String, port : Int32, settings : PlaceOS::Driver::Settings, start_tls : Bool = false, uri : Nil | String = nil, &received : Bytes, PlaceOS::Driver::Task | Nil -> Nil)

timeouts in seconds

Source

Class methods

default_tls

Instance methods

connect(connect_timeout : Int32 = 10) : Nil
Source
disconnect
Source
enable_multicast_loop(state = true)
http(method, path, body : HTTP::Client::BodyType = nil, params : Hash(String, String | Nil) | URI::Params = URI::Params.new, headers : Hash(String, String) | HTTP::Headers = HTTP::Headers.new, secure = false, concurrent = true) : HTTP::Client::Response
received
Source
received=(received : Slice(UInt8), Nil | PlaceOS::Driver::Task -> _)
Source
start_tls(verify_mode = OpenSSL::SSL::VerifyMode::NONE, context = @tls) : Nil
Source
terminate
Source