FileDocCategorySizeDatePackage
Connection.javaAPI DocAzureus 3.0.3.42078Thu Feb 09 19:42:52 GMT 2006org.gudy.azureus2.plugins.network

Connection

public interface Connection
Represents a managed peer connection, over which messages can be sent and received.

Fields Summary
Constructors Summary
Methods Summary
public voidclose()
Close and shutdown this connection.

public voidconnect(ConnectionListener listener)
Connect this connection's transport, i.e. establish the peer connection. If this connection is already established (from an incoming connection for example), then this provides a mechanism to register the connection listener, in which case connectSuccess() will be called immediately.

param
listener notified on connect success or failure

public IncomingMessageQueuegetIncomingMessageQueue()
Get the connection's incoming message queue.

return
inbound message queue

public OutgoingMessageQueuegetOutgoingMessageQueue()
Get the connection's outgoing message queue.

return
outbound message queue

public voidstartMessageProcessing()
Begin processing incoming and outgoing message queues.