public class PDUWriter
extends java.lang.Object
| Constructor and Description |
|---|
PDUWriter(INetworkAgent objINetworkAgent)
Instantiates new PDU Writer.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addConnectionListener(IConnectionListener objIConnectionListener)
Adds the connection listener.
|
void |
close()
This function closes the PDU Writer.
|
int |
getWriteMaxLength()
This function gets the maximum length that can be written to the remote entity.
|
boolean |
sendData(PDU objPDU)
Send data to the remote entity.
|
void |
setWriteMaxLength(int maxLength)
This function sets the maximum length that can be written to the remote entity.
|
public PDUWriter(INetworkAgent objINetworkAgent)
objINetworkAgent - public void setWriteMaxLength(int maxLength)
maxLength - int value of maximum length written to the remote entity.public int getWriteMaxLength()
public void addConnectionListener(IConnectionListener objIConnectionListener)
objIConnectionListener - the object of connection listenerpublic boolean sendData(PDU objPDU)
objPDU - the object of PDU to be sent to remote entity.public void close()