All Packages Class Hierarchy This Package Previous Next Index
Interface reliability.ReliableSender
- public interface ReliableSender
The interface for a reliable bytestream sender 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:
- ReliableReceiver
-
Close()
- Close the current connection.
-
Open(Address)
- Open a connection to the ReliableReceiver represented by
the address.
-
Send(byte[])
- Send a block of data on the connection.
Open
public abstract void Open(Address destination)
- Open a connection to the ReliableReceiver represented by
the address. This call blocks until the connection is
established.
- Parameters:
- destination - the address of the receiver
Send
public abstract void Send(byte data[]) throws ConnectionNotOpenException
- Send a block of data on the connection. Any amount of
data may be sent. This call may block if there is
insufficient buffer space. Clients may make any number
of Send calls per open connection.
- Parameters:
- data - the data (any amount) to send on the connection
Close
public abstract void Close() throws ConnectionNotOpenException
- Close the current connection. Blocks until all data
is read by the other application and the close
operation completes.
All Packages Class Hierarchy This Package Previous Next Index