Skip to content

Instantly share code, notes, and snippets.

@maximvl
Last active August 29, 2015 14:10
Show Gist options
  • Save maximvl/f3cbeaaabab7dc2fa502 to your computer and use it in GitHub Desktop.
Save maximvl/f3cbeaaabab7dc2fa502 to your computer and use it in GitHub Desktop.
echo-protocol: make root-protocol [
port-flags: system/standard/port-flags/pass-thru
sys-copy: get in system/words 'copy
copy: func [ port /local reponse ] [
t1: now/time/precise
reponse: sys-copy ""
insert port/sub-port "hello"
read-io port/sub-port reponse 5
(now/time/precise - t1)
]
net-utils/net-install echo self 7
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment