class

LocalSend::Receiver

Inherits Reference < Object

Receives LocalSend transfers over mutual TLS.

It owns the TLS socket so the presented certificate can be checked against the sender's announcement.

Constants

Log = LocalSend::Log.for("receiver")

Constructors

new(identity : Identity, port : Int32 = DEFAULT_PORT, pin : String | Nil = nil, buffer_size : Int32 = 8, &on_register : Protocol::DeviceInfo, String -> )
Source
new(identity : Identity, port : Int32 = DEFAULT_PORT, pin : String | Nil = nil, buffer_size : Int32 = 8)
Source

Instance methods

incoming

Transfers waiting for the application to accept or reject them.

Source
pin_status(request) : Int32 | Nil

A configured PIN locks after three failed attempts.

Source
port
Source
safe_name(name : String) : String

File names come from the peer.

Source
stop
Source
unique_path(directory : Path, file_name : String) : Path

Do not overwrite an existing file.

Source