Skip to content

Commit

Permalink
Merge c7514b9 into 4777725
Browse files Browse the repository at this point in the history
  • Loading branch information
dopry committed Mar 16, 2018
2 parents 4777725 + c7514b9 commit 25b723a
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions lib/client.js
Original file line number Diff line number Diff line change
Expand Up @@ -1122,6 +1122,14 @@ class Client extends EventEmitter {
this._transport.send(buffer.buffer, buffer.offset, receiver);
}

/**
* Send an errorResponse for a confirmedService.
* @param {string} receiver ip address of the service initiator
* @param {enum.ConfirmedServices} service the initiated service the generated the error.
* @param {number} invokeId the 'invoke-id' from the confirmed service request to which the error is a response.
* @param {enum.ErrorClasses} errorClass
* @param {enum.ErrorCode} errorCode
*/
errorResponse(receiver, service, invokeId, errorClass, errorCode) {
const buffer = this._getBuffer();
baNpdu.encode(buffer, baEnum.NpduControls.PRIORITY_NORMAL_MESSAGE, receiver);
Expand Down

0 comments on commit 25b723a

Please sign in to comment.