cgl.narada.transport.ptcp.psocket.tools
Class PTCPPacket

java.lang.Object
  extended by cgl.narada.transport.ptcp.psocket.tools.PTCPPacket
All Implemented Interfaces:
PTCPParameters

public class PTCPPacket
extends Object
implements PTCPParameters

Title:

Description:

Copyright: Copyright (c) 2004

Company:

Version:
1.0

Field Summary
 
Fields inherited from interface cgl.narada.transport.ptcp.psocket.tools.PTCPParameters
COMM_SOCKET, DATA_SOCKET, PTCPBuffer_Debug, PTCPDataFragmentator_Debug, PTCPInputStream_Debug, PTCPOutputStream_Debug, PTCPPacket_Debug, PTCPReceiverWorker_Debug, PTCPSenderWorker_Debug, PTCPServerSocket_Debug, PTCPSocket_Debug, PTCPSocketInfo_Debug
 
Constructor Summary
PTCPPacket()
           
PTCPPacket(int packetNumber, byte[] data)
           
 
Method Summary
 byte[] getData()
           
 int getPacketNumber()
           
 int getPacketSize()
           
static void main(String[] args)
           
static byte[] readFileToBuffer(String filename)
           
 void setData(byte[] data)
           
 void setPacketNumber(int packetNumber)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

PTCPPacket

public PTCPPacket()

PTCPPacket

public PTCPPacket(int packetNumber,
                  byte[] data)
Method Detail

setData

public void setData(byte[] data)

getData

public byte[] getData()

setPacketNumber

public void setPacketNumber(int packetNumber)

getPacketNumber

public int getPacketNumber()

getPacketSize

public int getPacketSize()

main

public static void main(String[] args)

toString

public String toString()
Overrides:
toString in class Object

readFileToBuffer

public static byte[] readFileToBuffer(String filename)


For comments and suggestions please send e-mail to The NaradaBrokering Project