class IPC::Context
- IPC::Context
- Reference
- Object
Direct Known Subclasses
Defined in:
cbor.cripc/context.cr
json.cr
Constructors
- .new(context : LibIPC::Ctx)
- .new
- .new(name : String, &block : Proc(IPC::Event::Events | Exception, Nil))
Instance Method Summary
- #<<(fd : Int)
-
#base_timer : Int32
TODO FIXME: base timer default is 30 seconds, INFTIM was causing trouble.
-
#base_timer=(base_timer : Int32)
TODO FIXME: base timer default is 30 seconds, INFTIM was causing trouble.
- #close
- #context : LibIPC::Ctx
-
#event : LibIPC::Event
On message reception, the message is contained into the event structure.
-
#event=(event : LibIPC::Event)
On message reception, the message is contained into the event structure.
- #loop(&block : Proc(IPC::Event::Events | Exception, Nil))
-
#pointer
sanitizer
- #pp
- #read(index : UInt32)
- #remove_fd(fd : Int32)
- #remove_index(index : UInt32)
- #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_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)
- #timer : Int32
- #timer=(timer : Int32)
- #wait_event : IPC::Event::Events | Exception
Constructor Detail
Instance Method Detail
def base_timer=(base_timer : Int32)
#
TODO FIXME: base timer default is 30 seconds, INFTIM was causing trouble.
def event : LibIPC::Event
#
On message reception, the message is contained into the event structure. This message is automatically deallocated on the next ipc_wait_event call. Therefore, we must keep this structure.
def event=(event : LibIPC::Event)
#
On message reception, the message is contained into the event structure. This message is automatically deallocated on the next ipc_wait_event call. Therefore, we must keep this structure.