Skip to content

Instantly share code, notes, and snippets.

@robstewart57
Last active August 29, 2015 13:57
Show Gist options
  • Save robstewart57/9550805 to your computer and use it in GitHub Desktop.
Save robstewart57/9550805 to your computer and use it in GitHub Desktop.
Example CAL image sending actor
actor image_sender() String ACK_IN ==> int(size=9) IMAGE_OUT :
List(type: int(size=9), size=9) image = [
123, 222, 242,
109, 13, 1,
209, 224, 96
];
bool sent := false;
action ==> IMAGE_OUT:[image] repeat 9
guard sent = false
do
sent := true;
end
action ACK_IN:[ack] ==>
do println("received acknowledgement: " + ack); end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment