|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--cnrg.itx.datax.devices.NetworkDestination
Class to act as a channel endpoint. Sends data to the network.
Field Summary | |
private int |
bytesRead
Attribute for storing the number of bytes written to the stream. |
private FECBuffer |
fecBuffer
Class to package up the devices for FEC correction |
private java.net.InetAddress |
iaPeer
Attribute to store the peer IPAddress |
private int |
iDevice
Attribute for storing the device ID. |
private static int |
instances
Attribute for storing the device instance number. |
private int |
iNumPackets
Attribute to hold number of packets sent |
private int |
iPort
Attribute to store peer port |
private boolean |
mute
Attribute to store the mute state of the device. |
private RTPPacketFactory |
rtpFactory
Creates valid RTP packets out of data with appropriate headers |
private java.net.DatagramSocket |
socket
Attribute for storing the datagram socket. |
private boolean |
useFECandRTP
If FEC and bufferig is supported. |
Constructor Summary | |
NetworkDestination()
Default constructor to create a network destination. |
|
NetworkDestination(boolean useFECandRTP)
Constructor for the network device specifying if FEC and buffering should be used. |
Method Summary | |
void |
close()
Method to close the network destination |
PropertiesCollection |
getProperties()
Returns a collection of properties supported. |
Stats |
getStatistics()
|
boolean |
mute(boolean mute)
Method to mute the network destination. |
void |
setPeerProperties(PropertiesCollection pc)
Interface to set the given properties collection into the device. |
void |
setProperties(PropertiesCollection pc)
Sets the given properties collection into the device |
void |
write(byte[] b)
Method to write data to the stream. |
Methods inherited from class java.lang.Object |
|
Field Detail |
private int bytesRead
private int iNumPackets
private static int instances
private int iDevice
private java.net.DatagramSocket socket
private boolean mute
private java.net.InetAddress iaPeer
private int iPort
private FECBuffer fecBuffer
private RTPPacketFactory rtpFactory
private boolean useFECandRTP
Constructor Detail |
public NetworkDestination() throws DataException
public NetworkDestination(boolean useFECandRTP) throws DataException
useFECandRTP
- true if FEC and RTP are to be usedMethod Detail |
public void write(byte[] b) throws DataException
b
- The array of bytes to write to the streampublic void close()
public boolean mute(boolean mute)
mute
- true if the device has to be muted and false if it has to be activatedpublic Stats getStatistics()
public PropertiesCollection getProperties() throws DataException
public void setProperties(PropertiesCollection pc) throws DataException
public void setPeerProperties(PropertiesCollection pc) throws DataException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |