| Function nameCodeFunction description | Description | Code |
|---|
InterfaceVersion GetVersion() | Function of getting the current interface version | InterfaceVersion GetVersion()
|
VerifyCredentialsvoid VerifyCredentials(1: Credentials cred)
throws(1: InvalidCredentials ex); | Auditing function of pushAPI SDK interface access parameters. Let Allows you to verify the data transfer before its transfer: |
void VerifyCredentialsventId BeginEvent (1: Event event, 2: Credentials cred)
throws(1: InvalidCredentials exInvalidEventFormat ex1, 2: InvalidCredentials ex2, 3: LicenseError ex3, 4: EventNotFound ex4, 5: DataNotFound ex5); | BeginEvent | Function initiating the transfer process of event interception to Traffic Monitor by means of pushAPI SDK, where: - event – filled in structure, containing all "metadametadata" describing the interception event. Attributes: sender, recipient, list of data streams, related to event;
- cred – structure, which allows the authorise to authorize the event transfer process;
- return – data transfer session event identification (few events can be transferred within one TCP-session).
ventId BeginEvent |
StreamId BeginStream (1: | Event EventId event_id, 2: | Credentials credItemId event_data_id)
throws(1: | InvalidEventFormat EventNotFound ex1, 2: | InvalidCredentials ex2, 3: LicenseError ex3, 4: EventNotFound ex4, 5: DataNotFound ex5DataNotFound ex2); | BeginStream | Function of data stream transfer initiation, related to interception event, where: - event_id – evend event identificator, related to this data stream. To be returned by
BeginEvent function; - event_data_id – data transfer identificator. This identificator is a part of event "metadata", in evt_data field;
- return – identification of loading stream.
|
StreamId BeginStreamvoid SendStreamData(1: EventId eventobject_id, 2: ItemId eventStreamId stream_data_id, 3: binary chunk)
throws(1: EventNotFound ex1, 2: DataNotFound StreamNotFound ex2, 3: InvalidEventFormat ex3); | SendStreamData | Function transferring the clipboard as a part of data stream related to interception event, where: - event_id – event identificator, related to this data stream. To be returned by
BeginEvent function; - stream_id – data steam stream identificator, where clipboard is a part of transferred data. To be returned by
BeginStream function; - chunk – clipboard. SDK user should specify the buffer size to provide enough speed of events loading with no overload of network infrastructure.
|
void SendStreamDataEndStream(1: EventId objectevent_id, 2: StreamId stream_id, 3: binary chunk)
throws(1: EventNotFound ex1, 2: StreamNotFound ex2, 3: InvalidEventFormat ex3); | EndStream | FucntionFunction, recording the data stream finishing, related to event interception, where: - event_id – event identificator, related to this data stream. To be returned by
BeginEvent function; - stream_id – data stream identificator, where clipboard is a part of transferred data. To be returned by
BeginStream function.
|
string GetEventDatabaseId(1: EventId object_id)
throws(1: EventNotFound ex1); | Function of getting unique interception event identification within Traffic Monitor System, where: - event_id – event identificator, got by calling
BeginEvent.
This value can be used to refer to loaded event. The function can be called after successful completion of BeginEvent function. |
void EndStreamEndEvent(1: EventId event_id, 2: StreamId stream_idbool abort)
throws(1: EventNotFound ex1, 2: StreamNotFound InvalidEventFormat ex2, 3: InvalidEventFormat LicenseError ex3); | EndEvent | FucntionFunction, recording the data stream finishing, related to event interception, where: - event_id – event identificator, which transfer is finishing;
- abort – flag of event processing finish within Traffic Monitor. If the flag is true, the event processing is over and Traffic Monitor is about "to forget" about it.
| void EndEvent(1: EventId event_id, 2: bool abort)
throws(1: EventNotFound ex1, 2: InvalidEventFormat ex2, 3: LicenseError ex3); | GetEventDatabaseld | Function of getting unique interception event identification within Traffic Monitor System, where: - event_id – event identificator, got by calling BeginEvent.
This value can be used to refer to loaded event. The function can be called after successful completion of BeginEvent function. | string GetEventDatabaseId(1: EventId object_id)
throws(1: EventNotFound ex1); |