diff options
Diffstat (limited to 'examples/client.sloth')
| -rw-r--r-- | examples/client.sloth | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/examples/client.sloth b/examples/client.sloth new file mode 100644 index 0000000..8b7f737 --- /dev/null +++ b/examples/client.sloth @@ -0,0 +1,9 @@ +fn main() Int { + var sockint: Int = clientsock(); + println(recvsock(sockint)); + while true { + sendsock(readln(), sockint); + } + closesock(sockint); + return 0; +} |
