Re: [julia-users] Re: TCP echo server

2014-03-23 Thread Collin Glass
Thank you! On Sunday, March 23, 2014 3:15:56 PM UTC-4, Keno Fischer wrote: > > "Hello Julia" is sent just fine, but it doesn't include a newline, so the > readline on the server never terminates. Try println(client, "Hello > Julia") or write(client,"Hello Julia\n"). > > > On Sun, Mar 23, 2014 at

Re: [julia-users] Re: TCP echo server

2014-03-23 Thread Keno Fischer
"Hello Julia" is sent just fine, but it doesn't include a newline, so the readline on the server never terminates. Try println(client, "Hello Julia") or write(client,"Hello Julia\n"). On Sun, Mar 23, 2014 at 3:11 PM, Collin Glass wrote: > I just started working on this again today, I've made a b

Re: [julia-users] Re: TCP echo server

2014-03-23 Thread Collin Glass
I just started working on this again today, I've made a bit of progress in the client. I'm just not understanding how the client side sends data to the server. Server side: server = listen(8080) while true conn = accept(server) @async begin try while true write(conn, "Hell

Re: [julia-users] Re: TCP echo server

2014-03-19 Thread Collin Glass
Thanks guys! My next question is how to write a client side? I'm creating a client.jl file with a few variations of the client code found in the Networking and Streams doc: Something like this: try client = connect(8080) write(client, "Hello Julia") line = readline(client) print(line) c

Re: [julia-users] Re: TCP echo server

2014-03-18 Thread Leah Hanson
Oops! Sorry for that typo; I'll add the missing parens! Thanks for the bug report, Leah On Tue, Mar 18, 2014 at 2:41 AM, Ivar Nesje wrote: > Because Julia does not have a print statement (just like the 3.X versions > of python). > > You will have to change the code to > > *print("connection en

[julia-users] Re: TCP echo server

2014-03-18 Thread Ivar Nesje
Because Julia does not have a print statement (just like the 3.X versions of python). You will have to change the code to *print("connection ended with error $err")* Ivar kl. 07:55:45 UTC+1 tirsdag 18. mars 2014 skrev Collin Glass følgende: > > I am just starting to use Julia and my first pr