enum SF::Socket::Status

Overview

Status codes that may be returned by socket functions

Defined in:

network/obj.cr

Enum Members

Done = 0

The socket has sent / received the data

NotReady = 1

The socket is not ready to send / receive data yet

Partial = 2

The socket sent a part of the data

Disconnected = 3

The TCP socket has been disconnected

Error = 4

An unexpected error happened

Instance Method Summary

Instance Method Detail

def disconnected? #

[View source]
def done? #

[View source]
def error? #

[View source]
def not_ready? #

[View source]
def partial? #

[View source]