test_julia_scripts/13_server.jl

14 lines
324 B
Julia
Raw Permalink Normal View History

# Asyncronous connection server
2020-05-07 17:05:12 +00:00
@async begin
server = listen(1234)
while true
conn = accept(server)
println("Client connected")
@async while isopen(conn)
line = readline(conn)
print("From client: $line")
write(conn,uppercase(line))
end
end
end