Niall, Thanks for pointing this out to me. I have updated the wiki and also placed the code into my sandbox. You may access the code at:
http://svn.apache.org/repos/asf/mina/sandbox/mwebb/mina/src/main/java/org/apache/mina/gettingstarted/timeserver/ --Mark On Wed, Apr 9, 2008 at 5:19 AM, Niall Pemberton <[EMAIL PROTECTED]> wrote: > The MINA v2.0 Quick Start Guide needs updating for the current API > > http://mina.apache.org/mina-v20-quick-start-guide.html > > In the last MinaTimeServer code snippet it has... > > acceptor.setLocalAddress( new InetSocketAddress(PORT) ); > acceptor.bind(); > > ...but setLocalAddress() doesn't exist (in Mina 2.0.0-M1) - should be > changed to setDefaultLocalAddress() or replace those lines with > > acceptor.bind(new InetSocketAddress(PORT)); > > The other thing is the lines added in the 3rd MinaTimeServer code > snippet have been dropped from the 4th(last) code snippet, i.e. > > acceptor.getSessionConfig().setReadBufferSize( 2048 ); > acceptor.getSessionConfig().setIdleTime( IdleStatus.BOTH_IDLE, 10 ); > > Niall > -- -------------------------------- Talent hits a target no one else can hit; Genius hits a target no one else can see.
