All Packages  Class Hierarchy  This Package  Previous  Next  Index

Interface reliability.ReliableReceiver

public interface ReliableReceiver
The interface for a reliable bytestream receiver implementation. This version supports connection setup and teardown. The sender and receiver are separated, and each is permitted only one open connection at a time.

See Also:
ReliableSender

Method Index

 o Receive(int)
Receive a block of data from the connection.

Methods

 o Receive
 public abstract byte[] Receive(int size)
Receive a block of data from the connection. Data blocks of any size may be received, and the operation will block until that much data is available. The only exception is that if the connection is closed or becomes closed before the requested amount of data is received, then less data may be returned.

Parameters:
size - the number of bytes requested
Returns:
the data received, up to the number of bytes requested

All Packages  Class Hierarchy  This Package  Previous  Next  Index