IpcMessage.hx 553 B

123456789101112131415161718192021
  1. package asys.io;
  2. import asys.net.Socket;
  3. /**
  4. A message sent over an IPC channel. Sent with `Process.send` to a sub-process
  5. or with `CurrentProcess.send` to the parent process. Received with
  6. `Process.messageSignal` from a sub-process, or `CurrentProcess.messageSignal`
  7. from the parent process.
  8. **/
  9. typedef IpcMessage = {
  10. /**
  11. The actual message. May be any data that is serializable with
  12. `haxe.Serializer`.
  13. **/
  14. var message:Dynamic;
  15. /**
  16. Sockets and pipes associated with the message. Must be connected.
  17. **/
  18. var ?sockets:Array<Socket>;
  19. };