[MOD] filees to understand networking and added some connection examples
This commit is contained in:
parent
7344cc6830
commit
0cb62245ce
|
@ -1,4 +1,4 @@
|
|||
conn = connect(1234)
|
||||
conn = connect(1234) # Defaults lo localhost
|
||||
|
||||
write(conn, "Hello world!\n")
|
||||
|
||||
|
@ -14,3 +14,4 @@ end
|
|||
t = Task(foo)
|
||||
|
||||
consume(t)
|
||||
|
|
@ -0,0 +1,5 @@
|
|||
conn = connect(1234)
|
||||
|
||||
println(conn, "hello world")
|
||||
|
||||
readline(conn)
|
|
@ -1,3 +1,4 @@
|
|||
# Asyncronous connection server
|
||||
@async begin
|
||||
server = listen(1234)
|
||||
while true
|
Loading…
Reference in New Issue