Path: csiph.com!usenet.pasdenom.info!weretis.net!feeder4.news.weretis.net!usenet.ukfsn.org!not-for-mail From: Martin Gregorie Newsgroups: comp.lang.java.programmer Subject: Re: Socket problem: read & write to same socket Date: Tue, 13 Mar 2012 23:00:56 +0000 (UTC) Organization: UK Free Software Network Lines: 23 Message-ID: References: <13556496.472.1331654504832.JavaMail.geo-discussion-forums@ynhs12> <4f5fc0a2$0$282$14726298@news.sunsite.dk> <4f5fc93f$0$295$14726298@news.sunsite.dk> NNTP-Posting-Host: 84.45.235.129 Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Trace: localhost.localdomain 1331679656 32635 84.45.235.129 (13 Mar 2012 23:00:56 GMT) X-Complaints-To: usenet@localhost.localdomain NNTP-Posting-Date: Tue, 13 Mar 2012 23:00:56 +0000 (UTC) User-Agent: Pan/0.135 (Tomorrow I'll Wake Up and Scald Myself with Tea; GIT 30dc37b master) Xref: csiph.com comp.lang.java.programmer:12993 On Tue, 13 Mar 2012 18:25:03 -0400, Arne Vajhøj wrote: > "I want to establish connection to a server(written by myself in Go > language)" > > "Note that the server side only sends one line into socket." > > "I later wrote a server in Java and a client in Go. They work fine in > both read and write." > > I can not read that as anything else than Java client go server. > I don't see that: first he says both in GO, which didn't work. Then he says server in Java and client in GO. I really don't see how you read "Java client" into that though, with the added flush() it does work like a client to "netcat -l -p 9999" - provided you expect a client to read before it writes, which I certainly don't. -- martin@ | Martin Gregorie gregorie. | Essex, UK org |