class IPC
- IPC
- Reference
- Object
Overview
Send both typed and untyped messages.
Defined in:
cbor.crhigh-level-bindings.cr
json.cr
message.cr
Constructors
Instance Method Summary
- #close(index : LibC::UInt64T)
- #close(fd : LibC::Int)
- #close
- #connect(name : String) : Int32
-
#deinit
Closes all connections then remove the structure from memory.
- #loop(&block : Proc(IPC::Event, Nil))
- #read(fd : Int32) : Slice(UInt8)
- #schedule(fd : Int32, buffer : Array(UInt8), buflen : Int32)
- #schedule(fd : Int32, buffer : Pointer(UInt8), buflen : UInt64)
- #schedule(fd : Int32, m : IPCMessage::TypedMessage | IPCMessage::UntypedMessage)
- #schedule(fd : Int32, string : String)
- #schedule(fd : Int32, buffer : Bytes)
-
#schedule(fd : Int32, message : IPC::CBOR)
Schedule messages contained into IPC::CBOR+.
-
#schedule(fd : Int32, message : IPC::JSON)
Schedule messages contained into IPC::JSON+.
- #service_init(name : String) : Int
- #timer(value : LibC::Int)
- #wait : IPC::Event
- #write(fd : Int, buffer : Pointer(UInt8), buflen : UInt64)
- #write(fd : Int32, m : IPCMessage::TypedMessage | IPCMessage::UntypedMessage)
- #write(fd : Int, string : String)
- #write(fd : Int32, buffer : Bytes)
- #write(fd : Int32, message : IPC::CBOR)
- #write(fd : Int32, message : IPC::JSON)
Constructor Detail
Instance Method Detail
Schedule messages contained into IPC::CBOR+.
Schedule messages contained into IPC::JSON+.