com.limegroup.gnutella.chat
Class ChatManager

java.lang.Object
  extended bycom.limegroup.gnutella.chat.ChatManager

public final class ChatManager
extends java.lang.Object

This class establishes a connection for a chat, either incoming or outgoing, and also maintains a list of all the chats currently in progress.


Constructor Summary
ChatManager()
           
 
Method Summary
 void accept(java.net.Socket socket)
          Accepts the given socket for a one-to-one chat connection, like an instant messanger.
 void blockHost(java.lang.String host)
          blocks incoming connections from a particular ip address
static ChatManager instance()
          Instance accessor for the ChatManager.
 void removeChat(InstantMessenger chat)
          Remove the instance of chat from the list of chats in progress.
 Chatter request(java.lang.String host, int port)
          Request a chat connection from the host specified returns an uninitialized chat connection.
 void unblockHost(java.lang.String host)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ChatManager

public ChatManager()
Method Detail

instance

public static ChatManager instance()
Instance accessor for the ChatManager.


accept

public void accept(java.net.Socket socket)
Accepts the given socket for a one-to-one chat connection, like an instant messanger.


request

public Chatter request(java.lang.String host,
                       int port)
Request a chat connection from the host specified returns an uninitialized chat connection. the callback will be called when the connection is established or the connection has died.


removeChat

public void removeChat(InstantMessenger chat)
Remove the instance of chat from the list of chats in progress.


blockHost

public void blockHost(java.lang.String host)
blocks incoming connections from a particular ip address


unblockHost

public void unblockHost(java.lang.String host)