class IPC::Client

Defined in:

cbor.cr
ipc/client.cr
json.cr

Constructors

Instance Method Summary

Instance methods inherited from class IPC::Context

<<(fd : Int) <<, base_timer : Int32 base_timer, base_timer=(base_timer : Int32) base_timer=, close close, context : LibIPC::Ctx context, event : LibIPC::Event event, event=(event : LibIPC::Event) event=, loop(&block : Proc(IPC::Event::Events | Exception, Nil)) loop, pointer pointer, pp pp, read(index : UInt32) read, remove_fd(fd : Int32) remove_fd, remove_index(index : UInt32) remove_index, send(fd : Int32, utype : UInt8, payload : Bytes)
send(fd : Int32, utype : UInt8, payload : String)
send(fd : Int32, message : IPC::CBOR)
send(fd : Int32, message : IPC::JSON)
send(message : LibIPC::Message)
send(message : IPC::Message)
send
, send_now(fd : Int32, utype : UInt8, payload : Bytes)
send_now(fd : Int32, utype : UInt8, payload : String)
send_now(fd : Int32, message : IPC::CBOR)
send_now(fd : Int32, message : IPC::JSON)
send_now(message : LibIPC::Message)
send_now(message : IPC::Message)
send_now
, timer : Int32 timer, timer=(timer : Int32) timer=, wait_event : IPC::Event::Events | Exception wait_event

Constructor methods inherited from class IPC::Context

new(context : LibIPC::Ctx)
new
new(name : String, &block : Proc(IPC::Event::Events | Exception, Nil))
new

Constructor Detail

def self.new(service_name : String) #

By default, this is a client.


[View source]

Instance Method Detail

def fd : Int32? #

[View source]
def read #

[View source]
def send(message : IPC::CBOR) #

[View source]
def send(message : IPC::JSON) #

[View source]
def send_now(message : IPC::CBOR) #

[View source]
def send_now(message : IPC::JSON) #

[View source]
def server_fd : Int32 | Nil #

[View source]
def server_fd=(server_fd : Int32 | Nil) #

[View source]