class IPC::Message

Defined in:

ipc/message.cr

Constructors

Class Method Summary

Instance Method Summary

Constructor Detail

def self.new(fd : Int32, mtype, utype : UInt8, payload : Bytes) #

[View source]
def self.new(fd, mtype, utype, payload : String) #

[View source]
def self.new(message : Pointer(LibIPC::Message)) #

[View source]
def self.new(message : LibIPC::Message) #

[View source]

Class Method Detail

def self.from_cbor(m : Bytes) : IPC::Message #

[View source]
def self.from_json(str : String) : IPC::Message #

[View source]
def self.to_packet(user_type : Int, message : String) #

[View source]

Instance Method Detail

def copy_to_message_pointer(pm : Pointer(LibIPC::Message)) #

[View source]
def fd : Int32 #

[View source]
def fd=(fd : Int32) #

[View source]
def mtype : UInt8 #

[View source]
def mtype=(mtype : UInt8) #

[View source]
def payload : Bytes #

[View source]
def payload=(payload : Bytes) #

[View source]
def to_cbor : Bytes #

[View source]
def to_json : String #

[View source]
def to_packet #

[View source]
def to_s #
Description copied from class Object

Returns a nicely readable and concise string representation of this object, typically intended for users.

This method should usually not be overridden. It delegates to #to_s(IO) which can be overridden for custom implementations.

Also see #inspect.


[View source]
def utype : UInt8 #

[View source]
def utype=(utype : UInt8) #

[View source]