struct CQL::Postgres::Transport::Stream

Overview

The byte stream to talk over, and the socket under it. Closing the socket ends the connection at once; closing a TLS stream first sends close_notify, which can block for good on a dead path with a full send buffer.

Defined in:

postgres/transport.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(io : IO, socket : IO) #

[View source]

Instance Method Detail

def clone #

[View source]
def copy_with(io _io = @io, socket _socket = @socket) #

[View source]
def io : IO #

def socket : IO #