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: Thu, 15 Mar 2012 00:45:59 +0000 (UTC) Organization: UK Free Software Network Lines: 27 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> <27729487.119.1331678296341.JavaMail.geo-discussion-forums@pbfz10> <4f5fce87$0$285$14726298@news.sunsite.dk> <1a26637d-070c-4bf7-8b85-38753d693fa8@l1g2000vbc.googlegroups.com> 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 1331772359 24347 84.45.235.129 (15 Mar 2012 00:45:59 GMT) X-Complaints-To: usenet@localhost.localdomain NNTP-Posting-Date: Thu, 15 Mar 2012 00:45:59 +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:13011 On Wed, 14 Mar 2012 02:51:29 -0700, Paul Cager wrote: > On Mar 13, 11:33 pm, 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. > I wasn't certain about SSH since I haven't read the RFC and thought the initial prompts for password and on initial connection to a host could have been output by the client. Is NTP client server or peer to peer? I assume the latter since a copy of the NTP daemon function more or less as a client if its only local time source is the system clock. -- martin@ | Martin Gregorie gregorie. | Essex, UK org |