Rice Pastry API

org.mpisws.p2p.transport.wire
Interface WireTransportLayer

All Superinterfaces:
Destructable, TransportLayer<java.net.InetSocketAddress,java.nio.ByteBuffer>
All Known Implementing Classes:
WireTransportLayerImpl

public interface WireTransportLayer
extends TransportLayer<java.net.InetSocketAddress,java.nio.ByteBuffer>

Sends/receives ByteBuffer from InetSocketAddress This layer does a lot of the difficult part: - Non-blocking I/O (using selector etc) - Enforcement of number of Sockets to prevent FileDescriptor Starvation

Author:
Jeff Hoye

Field Summary
static java.lang.String OPTION_TRANSPORT_TYPE
           
static int TRANSPORT_TYPE_DATAGRAM
           
static int TRANSPORT_TYPE_GUARANTEED
          Note this does not provide end-to-end guarantee.
 
Method Summary
 
Methods inherited from interface org.mpisws.p2p.transport.TransportLayer
acceptMessages, acceptSockets, getLocalIdentifier, openSocket, sendMessage, setCallback, setErrorHandler
 
Methods inherited from interface rice.Destructable
destroy
 

Field Detail

OPTION_TRANSPORT_TYPE

static final java.lang.String OPTION_TRANSPORT_TYPE
See Also:
Constant Field Values

TRANSPORT_TYPE_DATAGRAM

static final int TRANSPORT_TYPE_DATAGRAM
See Also:
Constant Field Values

TRANSPORT_TYPE_GUARANTEED

static final int TRANSPORT_TYPE_GUARANTEED
Note this does not provide end-to-end guarantee. Only per-hop guarantee.

See Also:
Constant Field Values

Rice Pastry API

Copyright © 2001-2005 - Rice Pastry.


Imprint-Dataprotection