Package xnap.plugin.nap.net.msg.server

Examples of xnap.plugin.nap.net.msg.server.ServerMessage


    }

    private void checkForError(MessageStream ms) throws IOException
    {
  while (ms.hasNext()) {
      ServerMessage m = (ServerMessage)ms.next();

      if (m instanceof ErrorMessage) {
    String expect = sr.getUser().getName() + " is not firewalled";
    if (((ErrorMessage)m).message.equals(expect)) {
        MessageHandler.unsubscribe(ErrorMessage.TYPE, ms);
View Full Code Here


    e = new IOException("server timeout");
    break;
      }

      if (ms.hasNext(100)) {
    ServerMessage msg = ms.next();
   
    if (msg instanceof DirectBrowseErrorMessage) {
        DirectBrowseErrorMessage m = (DirectBrowseErrorMessage)msg;
        if (m.nick.equals(getUser().getName())) {
      e = new IOException(m.message);
View Full Code Here

TOP

Related Classes of xnap.plugin.nap.net.msg.server.ServerMessage

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.