Created
February 18, 2014 15:45
-
-
Save ishikawa/9073483 to your computer and use it in GitHub Desktop.
A simple TCP example (http://docs.julialang.org/en/release-0.2/manual/networking-and-streams/)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
julia> @async begin | |
server = listen(2000) | |
while true | |
sock = accept(server) | |
println("Hello World\n") | |
end | |
end | |
Task (queued) @0x00007fe0d62ae100 | |
julia> connect(2000) | |
TcpSocket(open, 0 bytes waiting) | |
julia> Hello World |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment