Module: SimpleRPC::SocketProtocol

Defined in:
lib/simplerpc/socket_protocol.rb

Overview

SocketProtocol defines common low-level aspects of data transfer between client and server.

In normal use you can safely ignore this class and simply use Client and Server.

Defined Under Namespace

Modules: Simple, Stream

Constant Summary collapse

AUTH_SUCCESS =

Sent when auth succeeds (ASCII to match simple protocol)

'C'.encode('ASCII-8BIT', :undef => :replace, :invalid => :replace)
AUTH_FAIL =

Sent when auth fails (ASCII to match simple protocol)

'F'.encode('ASCII-8BIT', :undef => :replace, :invalid => :replace)
REQUEST_SUCCESS =

The request succeeded

0
REQUEST_FAIL =

The request failed and threw something

1
REQUEST_YIELD =

The request is yielding data to a block

2