Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
10
Task/Sockets/Slate/sockets.slate
Normal file
10
Task/Sockets/Slate/sockets.slate
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
[ | socket |
|
||||
[ | addr stream |
|
||||
addr: (Net SocketAddress newOn: '127.0.0.1:256').
|
||||
socket: (Net Socket newFor: addr domain type: Net Socket Types Stream protocol: Net Socket Protocols Default).
|
||||
socket connectTo: addr.
|
||||
stream: (Net SocketStream newOn: socket).
|
||||
stream nextPutAll: ('hello socket world' as: ByteArray).
|
||||
stream flush
|
||||
] ensure: [socket close]
|
||||
] do.
|
||||
Loading…
Add table
Add a link
Reference in a new issue