net.sf.beep4j.transport
Interface Transport

All Known Implementing Classes:
MinaTransport

public interface Transport

The Transport interface has to be implemented by the transport layer

Author:
Simon Raess

Method Summary
 void closeTransport()
          Instructs the transport layer to close the connection.
 void sendBytes(java.nio.ByteBuffer buffer)
          Sends the passed in bytes to the other peer.
 

Method Detail

sendBytes

void sendBytes(java.nio.ByteBuffer buffer)
Sends the passed in bytes to the other peer.

Parameters:
buffer - the ByteBuffer holding the bytes to be transfered

closeTransport

void closeTransport()
Instructs the transport layer to close the connection.



Copyright © 2007 null. All Rights Reserved.