Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
11
Task/Sockets/Myrddin/sockets.myrddin
Normal file
11
Task/Sockets/Myrddin/sockets.myrddin
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
use std
|
||||
|
||||
const main = {
|
||||
match std.dial("tcp!localhost!256")
|
||||
| `std.Ok fd:
|
||||
std.write(fd, "hello socket world")
|
||||
std.close(fd)
|
||||
| `std.Err err:
|
||||
std.fatal("could not open fd: {}\n", err)
|
||||
;;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue