|
Lines 82-87
Link Here
|
| 82 |
//public int sendData(int targetInstanceId, char[] buffer, int bufferLength) throws DataChannelConnectionException, NotConnectedException; |
82 |
//public int sendData(int targetInstanceId, char[] buffer, int bufferLength) throws DataChannelConnectionException, NotConnectedException; |
| 83 |
public int sendData(int targetInstanceId, char[] buffer) throws DataChannelConnectionException, AgentControllerUnavailableException; |
83 |
public int sendData(int targetInstanceId, char[] buffer) throws DataChannelConnectionException, AgentControllerUnavailableException; |
| 84 |
/** |
84 |
/** |
|
|
85 |
* send the given data buffer to the given destination |
| 86 |
* This method is used by the Remote Agent |
| 87 |
* on the AgentController to send the data to the Client |
| 88 |
* @param targetInstanceId - send data to the target connection id |
| 89 |
* @param buffer - data to be sent |
| 90 |
* @throws DataChannelConnectionException |
| 91 |
* @return 0 successful; non-zero error |
| 92 |
*/ |
| 93 |
public int sendData(int targetInstanceId, byte[] buffer) throws AgentControllerUnavailableException; |
| 94 |
|
| 95 |
/** |
| 96 |
* send the given data buffer to the given destination |
| 97 |
* This method is used by the Remote Agent |
| 98 |
* on the AgentController to send the data to the Client |
| 99 |
* @param targetInstanceId - send data to the target connection id |
| 100 |
* @param buffer - data to be sent |
| 101 |
* @param offset - start offset in the data |
| 102 |
* @param length - number of bytes to send |
| 103 |
* @throws DataChannelConnectionException |
| 104 |
* @return 0 successful; non-zero error |
| 105 |
*/ |
| 106 |
public int sendData(int targetInstanceId, byte[] buffer, int offset, int length) throws AgentControllerUnavailableException; |
| 107 |
|
| 108 |
/** |
| 85 |
* ReceiveData from the Client |
109 |
* ReceiveData from the Client |
| 86 |
* @param sourceId |
110 |
* @param sourceId |
| 87 |
* @param buffer |
111 |
* @param buffer |
|
Lines 90-95
Link Here
|
| 90 |
*/ |
114 |
*/ |
| 91 |
public int receiveData(int sourceId, String buffer, int bufferLength) throws DataChannelConnectionException, AgentControllerUnavailableException; |
115 |
public int receiveData(int sourceId, String buffer, int bufferLength) throws DataChannelConnectionException, AgentControllerUnavailableException; |
| 92 |
|
116 |
|
|
|
117 |
/** |
| 118 |
* ReceiveData from the Client |
| 119 |
* @param sourceId |
| 120 |
* @param buffer |
| 121 |
* @param bufferLength |
| 122 |
* @throws DataChannelConnectionException, NotConnectedException |
| 123 |
*/ |
| 124 |
public int receiveData(int sourceId, byte[] buffer, int bufferLength) throws DataChannelConnectionException, AgentControllerUnavailableException; |
| 125 |
|
| 93 |
/** |
126 |
/** |
| 94 |
* This method is invoked by the Agent Controller if there are no referencing clients |
127 |
* This method is invoked by the Agent Controller if there are no referencing clients |
| 95 |
*/ |
128 |
*/ |