Last active
August 29, 2015 13:57
-
-
Save robstewart57/9550805 to your computer and use it in GitHub Desktop.
Example CAL image sending actor
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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