class IPC

Overview

Send both typed and untyped messages.

Defined in:

cbor.cr
high-level-bindings.cr
json.cr
message.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new #

[View source]

Instance Method Detail

def close(index : LibC::UInt64T) #

[View source]
def close(fd : LibC::Int) #

[View source]
def close #

[View source]
def connect(name : String) : Int32 #

[View source]
def deinit #

Closes all connections then remove the structure from memory.


[View source]
def loop(&block : Proc(IPC::Event, Nil)) #

[View source]
def read(fd : Int32) : Slice(UInt8) #

[View source]
def schedule(fd : Int32, buffer : Array(UInt8), buflen : Int32) #

[View source]
def schedule(fd : Int32, buffer : Pointer(UInt8), buflen : UInt64) #

[View source]
def schedule(fd : Int32, m : IPCMessage::TypedMessage | IPCMessage::UntypedMessage) #

[View source]
def schedule(fd : Int32, string : String) #

[View source]
def schedule(fd : Int32, buffer : Bytes) #

[View source]
def schedule(fd : Int32, message : IPC::CBOR) #

Schedule messages contained into IPC::CBOR+.


[View source]
def schedule(fd : Int32, message : IPC::JSON) #

Schedule messages contained into IPC::JSON+.


[View source]
def service_init(name : String) : Int #

[View source]
def timer(value : LibC::Int) #

[View source]
def wait : IPC::Event #

[View source]
def write(fd : Int, buffer : Pointer(UInt8), buflen : UInt64) #

[View source]

[View source]
def write(fd : Int, string : String) #

[View source]
def write(fd : Int32, buffer : Bytes) #

[View source]
def write(fd : Int32, message : IPC::CBOR) #

[View source]
def write(fd : Int32, message : IPC::JSON) #

[View source]