sockets - tcp client in julia with tcp server in java -


i wrote simple tcp socket server in java (code below), echo server (but replaces 'a' 'b')

now trying write client using julia

i can send message on julia cilent, arrives in java

but not see response in julia java echo server sends

what doing wrong?

==========================

using julia 0.4.1-pre

julia client on repl:

clientside=connect(4445) println(clientside,"aaa") # on output; expected output here due example on docs  println(readline(clientside)) # no output here either, in fact, blocks 

java server:

try         (                 bufferedreader input = new bufferedreader(new inputstreamreader(this.socket.getinputstream()));                 dataoutputstream output = new dataoutputstream(this.socket.getoutputstream());         )         {             string line = null;             while((line = input.readline()) != null)             {                 output.writeutf(line.replace('a','b'));                 if(line.equalsignorecase("quit"))                 {                     break;                 }             }         } 

so got work

i changed java dataoutputstream printwriter

i don't understand it, @ least works


Comments