Official cwtch.im peer and server implementations. https://cwtch.im
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

ipc.go 396B

1234567891011121314
  1. package event
  2. // IPCMessage is a wrapper for a regular eventMessage with a destination (onion|AppDest) so the other side of the bridge can route appropriately
  3. type IPCMessage struct {
  4. Dest string
  5. Message Event
  6. }
  7. // IPCBridge is an interface to a IPC construct used to communicate IPCMessages
  8. type IPCBridge interface {
  9. Read() (*IPCMessage, bool)
  10. Write(message *IPCMessage)
  11. Shutdown()
  12. }