com.aelitis.azureus.plugins.net.buddy
Class BuddyPluginBuddy.buddyConnection

java.lang.Object
  extended by com.aelitis.azureus.plugins.net.buddy.BuddyPluginBuddy.buddyConnection
Enclosing class:
BuddyPluginBuddy

protected class BuddyPluginBuddy.buddyConnection
extends Object


Constructor Summary
protected BuddyPluginBuddy.buddyConnection(GenericMessageConnection _connection, boolean _outgoing)
           
 
Method Summary
protected  boolean checkTimeout(long now)
           
protected  void close()
           
 void connected()
           
protected  void disconnect()
           
 void failed(Throwable error)
           
protected  long getLastActive(long now)
           
protected  String getString()
           
protected  String getString(boolean short_form)
           
protected  boolean hasFailed()
           
 boolean isActive()
           
protected  boolean isClosing()
           
protected  boolean isConnected()
           
protected  boolean isOutgoing()
           
protected  boolean isRemoteClosing()
           
 void receive(Map data_map)
           
protected  void remoteClosing()
           
protected  void send(BuddyPluginBuddy.buddyMessage msg)
           
protected  void sendCloseMessage(BuddyPluginBuddy.buddyMessage message)
           
protected  void sendMessage(BuddyPluginBuddy.buddyMessage message)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BuddyPluginBuddy.buddyConnection

protected BuddyPluginBuddy.buddyConnection(GenericMessageConnection _connection,
                                           boolean _outgoing)
Method Detail

isConnected

protected boolean isConnected()

hasFailed

protected boolean hasFailed()

isOutgoing

protected boolean isOutgoing()

getLastActive

protected long getLastActive(long now)

sendMessage

protected void sendMessage(BuddyPluginBuddy.buddyMessage message)
                    throws BuddyPluginException
Throws:
BuddyPluginException

sendCloseMessage

protected void sendCloseMessage(BuddyPluginBuddy.buddyMessage message)

isActive

public boolean isActive()

connected

public void connected()

checkTimeout

protected boolean checkTimeout(long now)

send

protected void send(BuddyPluginBuddy.buddyMessage msg)

receive

public void receive(Map data_map)

close

protected void close()

isClosing

protected boolean isClosing()

remoteClosing

protected void remoteClosing()

isRemoteClosing

protected boolean isRemoteClosing()

disconnect

protected void disconnect()

failed

public void failed(Throwable error)

getString

protected String getString()

getString

protected String getString(boolean short_form)