[julia-users] Re: Julia TCP server and connection

2016-09-15 Thread Karli Kund
Aa, I learned once again more. Now I got it work. I hade problem that the server 1 get get stuck to "starting processor task", but that fix when I closed Atom. I changed server 1 a bit. If I stop server 2, the server two doesn't stop because "isopen(s2conn)", but because it can't write to serv

[julia-users] Re: Julia TCP server and connection

2016-09-15 Thread Tanmay K. Mohapatra
Hi. 1. fn is the function provided by the do block (see: http://docs.julialang.org/en/release-0.4/manual/functions/#do-block-syntax-for-function-arguments) 2. Yes. Thanks for pointing out. 3. I was experimenting with sending multiple messages over the same connection. It avoids the issue with b

[julia-users] Re: Julia TCP server and connection

2016-09-15 Thread Karli Kund
Wou, that s some hi skill coding. It takes my a while(don't understand) to understand it. I got the basics,but I still have couple of questions: 1. what is fn? There is function proc = fn(sock). What it doses with that proc value? 2. senddata function should have s1conn = connect(port) or ? 3. W

[julia-users] Re: Julia TCP server and connection

2016-09-15 Thread Karli Kund
Wou, that s some hi skill coding. It takes my a while(don't understand) to understand it. I got the basics,but I still have couple of questions: 1. what is fn? There is function proc = fn(sock). What it doses with that proc value? 2. senddata function should have s1conn = connect(port) or ? 3. W

[julia-users] Re: Julia TCP server and connection

2016-09-14 Thread Tanmay K. Mohapatra
Hi, I did not find any slowness when I ran the code. My environment: Julia Version 0.4.6 Commit 2e358ce (2016-06-19 17:16 UTC) Platform Info: System: Linux (x86_64-unknown-linux-gnu) CPU: Intel(R) Core(TM) i7-4700MQ CPU @ 2.40GHz WORD_SIZE: 64 BLAS: libopenblas (USE64BITINT DYNAMIC_ARCH N