|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcgl.narada.transport.udp.UDPBigPackageHandler
public class UDPBigPackageHandler
Title: UDPBigPackageHandler
Description: This file helps to send the bytes bigger than 64KB
| Constructor Summary | |
|---|---|
UDPBigPackageHandler()
Constructor |
|
| Method Summary | |
|---|---|
byte[] |
composePackage(Vector pvector)
Composes a package to send |
Vector |
createSmallPackVector(byte[] data)
Receives a big chunk of byte and devides it to smaller than 64 KB byte arrays |
void |
initReceiver(boolean debug)
Initilize parameters for receiver |
void |
initSender(boolean debug)
Initilize parameters for sender |
static void |
main(String[] args)
|
byte[] |
receivedPackages(byte[] dataRecv)
Handles received packages, combines small packages |
void |
shutdownServices()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public UDPBigPackageHandler()
| Method Detail |
|---|
public void shutdownServices()
public void initReceiver(boolean debug)
debug - passed debugging parameterpublic void initSender(boolean debug)
debug - passed debugging parameterpublic Vector createSmallPackVector(byte[] data)
data - received big chunk
public byte[] composePackage(Vector pvector)
pvector - Receives a vector of bytes
public byte[] receivedPackages(byte[] dataRecv)
dataRecv - Received package
public static void main(String[] args)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||