class

Movie::Remote::InboundConnection

Inherits Reference < Object

InboundConnection handles an incoming connection from a remote system.

Constants

Log = ::Log.for(self)

Constructors

new(socket : TCPSocket, server : Server, path_registry : Movie::PathRegistry, on_message : Proc(WireEnvelope, InboundConnection, Nil))
Source

Instance methods

close

Closes the connection.

Source
close_without_callback

Closes the connection without notifying the server (used during server shutdown).

Source
connected?
Source
remote_address

Returns the remote address if known (from handshake).

Source
remote_address=(remote_address : Address | Nil)

Sets the remote address (from handshake).

Source
send(envelope : WireEnvelope) : Bool

Sends an envelope to the remote system.

Source
start

Starts reading from the connection.

Source