rice.p2p.commonapi.appsocket
Interface AppSocketReceiver

All Known Implementing Classes:
FileTransferImpl

public interface AppSocketReceiver

Interface to receive an application level socket. This allows individual applications to do their own bandwidth/flow control.

Author:
Jeff Hoye

Method Summary
 void receiveException(AppSocket socket, Exception e)
          Called when there is an error
 void receiveSelectResult(AppSocket socket, boolean canRead, boolean canWrite)
          Called when a socket is available for read/write
 void receiveSocket(AppSocket socket)
          Called when we have a new socket (due to a call to connect or accept)
 

Method Detail

receiveSocket

void receiveSocket(AppSocket socket)
                   throws IOException
Called when we have a new socket (due to a call to connect or accept)

Throws:
IOException

receiveSelectResult

void receiveSelectResult(AppSocket socket,
                         boolean canRead,
                         boolean canWrite)
                         throws IOException
Called when a socket is available for read/write

Throws:
IOException

receiveException

void receiveException(AppSocket socket,
                      Exception e)
Called when there is an error



Copyright © 2010. All Rights Reserved.