jSyncManager

org.jSyncManager.API.Protocol
Interface CMPDLPTransferInterface

All Known Implementing Classes:
PADP, USB

public interface CMPDLPTransferInterface

CMP-DLP protocol transfer interface. This interface needs to be implemented by any protocol that sits underneath the CMP-DLP layer.

Version:
$Revision: 1.4 $
Author:
Brad BARCLAY >bbarclay@jsyncmanager.org<, Last modified by: $Author: yaztromo $.

Method Summary
 void connect()
          Method to be called to initialize the connection.
 void disconnect()
          Disconnects the connection to the underlying communication subsystem.
 GenericPacket readPacket()
          Reads a packet from the underlying communication subsystem.
 void suspendConnection()
          Suspends access to the underlying communication subsystem.
 void transmitPacket(byte[] date, byte srcSocket, byte destSocket)
          Transmits a packet to the underlying communication subsystem.
 

Method Detail

connect

public void connect()
Method to be called to initialize the connection.

readPacket

public GenericPacket readPacket()
                         throws NotConnectedException
Reads a packet from the underlying communication subsystem.
Returns:
A GenericPacket object containing the read data.

transmitPacket

public void transmitPacket(byte[] date,
                           byte srcSocket,
                           byte destSocket)
                    throws NotConnectedException,
                           PADP_PacketTooBigException
Transmits a packet to the underlying communication subsystem.
Parameters:
data - the data to transmit.
srcSocket - the socket that was the source of this data (may be ignored).
destSocket - the socket that is the intended destination of this data (may be ignored).

disconnect

public void disconnect()
Disconnects the connection to the underlying communication subsystem.

suspendConnection

public void suspendConnection()
Suspends access to the underlying communication subsystem.

jSyncManager

Copyright (c) 1999 - 2003 Brad BARCLAY and others. All Rights Reserved.