Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!news.glorb.com!postnews.google.com!l1g2000vbc.googlegroups.com!not-for-mail From: Paul Cager Newsgroups: comp.lang.java.programmer Subject: Re: Socket problem: read & write to same socket Date: Wed, 14 Mar 2012 02:51:29 -0700 (PDT) Organization: http://groups.google.com Lines: 10 Message-ID: <1a26637d-070c-4bf7-8b85-38753d693fa8@l1g2000vbc.googlegroups.com> References: <13556496.472.1331654504832.JavaMail.geo-discussion-forums@ynhs12> <4f5fc0a2$0$282$14726298@news.sunsite.dk> <4f5fc93f$0$295$14726298@news.sunsite.dk> <27729487.119.1331678296341.JavaMail.geo-discussion-forums@pbfz10> <4f5fce87$0$285$14726298@news.sunsite.dk> NNTP-Posting-Host: 81.94.213.9 Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: posting.google.com 1331718689 30579 127.0.0.1 (14 Mar 2012 09:51:29 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Wed, 14 Mar 2012 09:51:29 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: l1g2000vbc.googlegroups.com; posting-host=81.94.213.9; posting-account=VsWLXwoAAAB13M2Ptt5-Bo-K_zCx-zyw User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (Windows NT 5.1) AppleWebKit/535.11 (KHTML, like Gecko) Chrome/17.0.963.56 Safari/535.11,gzip(gfe) Xref: csiph.com comp.lang.java.programmer:13001 On Mar 13, 11:33=A0pm, Martin Gregorie wrote: > I've been thinking over the servers protocols I know. The only one I can > think of where the process accepting the connection speaks first is SMTP, > where the server that accepts the connection announces who it is before > seeing what its peer has to say. Arguably, this is a slightly different > case since SMTP is a peer-to-peer protocol rather than a client-server > one. There's also SSH and (if I remember correctly) the "time" protocol.