I merged this change to branches/1.0. Trustin
On 4/24/07, Trustin Lee <[EMAIL PROTECTED]> wrote:
Does this change affect the 1.0 branch either? Then we need to merge this change there too. Trustin On 4/22/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > Author: proyal > Date: Sat Apr 21 13:06:05 2007 > New Revision: 531099 > > URL: http://svn.apache.org/viewvc?view=rev&rev=531099 > Log: > Fix example so it connects properly > > Modified: > mina/branches/1.1/example/src/main/java/org/apache/mina/example/chat/client/ChatClientSupport.java > mina/branches/1.1/example/src/main/java/org/apache/mina/example/chat/client/SwingChatClient.java > > Modified: mina/branches/1.1/example/src/main/java/org/apache/mina/example/chat/client/ChatClientSupport.java > URL: http://svn.apache.org/viewvc/mina/branches/1.1/example/src/main/java/org/apache/mina/example/chat/client/ChatClientSupport.java?view=diff&rev=531099&r1=531098&r2=531099 > ============================================================================== > --- mina/branches/1.1/example/src/main/java/org/apache/mina/example/chat/client/ChatClientSupport.java (original) > +++ mina/branches/1.1/example/src/main/java/org/apache/mina/example/chat/client/ChatClientSupport.java Sat Apr 21 13:06:05 2007 > @@ -79,18 +79,14 @@ > return false; > } > session = future1.getSession(); > - > + session.write( "LOGIN " + name ); > return true; > } > catch ( Exception e) > { > + e.printStackTrace(); > return false; > } > - } > - > - public void login() > - { > - session.write( "LOGIN " + name ); > } > > public void broadcast( String message ) > > Modified: mina/branches/1.1/example/src/main/java/org/apache/mina/example/chat/client/SwingChatClient.java > URL: http://svn.apache.org/viewvc/mina/branches/1.1/example/src/main/java/org/apache/mina/example/chat/client/SwingChatClient.java?view=diff&rev=531099&r1=531098&r2=531099 > ============================================================================== > --- mina/branches/1.1/example/src/main/java/org/apache/mina/example/chat/client/SwingChatClient.java (original) > +++ mina/branches/1.1/example/src/main/java/org/apache/mina/example/chat/client/SwingChatClient.java Sat Apr 21 13:06:05 2007 > @@ -6,16 +6,16 @@ > * to you under the Apache License, Version 2.0 (the > * "License"); you may not use this file except in compliance > * with the License. You may obtain a copy of the License at > - * > + * > * http://www.apache.org/licenses/LICENSE-2.0 > - * > + * > * Unless required by applicable law or agreed to in writing, > * software distributed under the License is distributed on an > * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY > * KIND, either express or implied. See the License for the > * specific language governing permissions and limitations > - * under the License. > - * > + * under the License. > + * > */ > package org.apache.mina.example.chat.client; > > @@ -45,7 +45,7 @@ > > /** > * Simple chat client based on Swing & MINA that implements the chat protocol. > - * > + * > * @author The Apache Directory Project ([EMAIL PROTECTED]) > * @version $Rev$, $Date$ > */ > @@ -199,7 +199,7 @@ > private class BroadcastAction extends AbstractAction > { > /** > - * > + * > */ > private static final long serialVersionUID = -6276019615521905411L; > > @@ -280,7 +280,6 @@ > > public void connected() > { > - client.login(); > } > > public void disconnected() > > > -- what we call human nature is actually human habit -- http://gleamynode.net/ -- PGP Key ID: 0x0255ECA6
-- what we call human nature is actually human habit -- http://gleamynode.net/ -- PGP Key ID: 0x0255ECA6
