rero.dcc

Class DataDCC

public class DataDCC extends Object

Field Summary
protected HashMapconnectionCache
protected static ListdccList
protected static HashMapresumeData
Constructor Summary
DataDCC()
Method Summary
voidaddConnection(String port, GenericDCC dcc)
used by the resume stuff
voidcloseChat(String nickname)
voidcloseConnection(String nickname)
voidcloseConnection(String nickname, int type)
IteratorgetActiveConnections()
ListgetAllConnections()
IteratorgetClosedConnections()
GenericDCCgetConnection(String port)
GenericDCCgetConnectionFromHash(String hash)
LinkedListgetConnections(int type, int state)
LinkedListgetConnections(Collection dccCollection, int type, int state)
GenericDCCgetConnectionToAccept(String nickname)
ProtocolDCCgetSpecificConnection(String nickname, int type)
GenericDCCgetUserConnection(Collection dccCollection, String nickname)
IteratorgetWaitingConnections()
voidremoveConnection(GenericDCC dcc)

Field Detail

connectionCache

protected HashMap connectionCache

dccList

protected static List dccList

resumeData

protected static HashMap resumeData

Constructor Detail

DataDCC

public DataDCC()

Method Detail

addConnection

public void addConnection(String port, GenericDCC dcc)
used by the resume stuff

closeChat

public void closeChat(String nickname)

closeConnection

public void closeConnection(String nickname)

closeConnection

public void closeConnection(String nickname, int type)

getActiveConnections

public Iterator getActiveConnections()

getAllConnections

public List getAllConnections()

getClosedConnections

public Iterator getClosedConnections()

getConnection

public GenericDCC getConnection(String port)

getConnectionFromHash

public GenericDCC getConnectionFromHash(String hash)

getConnections

public LinkedList getConnections(int type, int state)

getConnections

public LinkedList getConnections(Collection dccCollection, int type, int state)

getConnectionToAccept

public GenericDCC getConnectionToAccept(String nickname)

getSpecificConnection

public ProtocolDCC getSpecificConnection(String nickname, int type)

getUserConnection

public GenericDCC getUserConnection(Collection dccCollection, String nickname)

getWaitingConnections

public Iterator getWaitingConnections()

removeConnection

public void removeConnection(GenericDCC dcc)