blob: b74dd62dbba135b9b7044a6d8dbdfdf8b82001d2 [file] [log] [blame]
Holger Hans Peter Freythere0248692016-08-05 15:47:08 +02001ZeroMQ data protocol v1
2=======================
3
4The osmo-pcap-server can be configured to publish PCAP data to
5zero to many subscribers. The following document describes the
6data format used.
7
8Multiple clients might be connected to the osmo-pcap-server and
9use different link headers depending on the underlying device
10data is being captured from.
11
12The messages published are in two categories. These are client
13events and client data. Client events are generated on connect,
14disconnect, link type change and client data is sent for each
15frame.
16
17Client Events
18^^^^^^^^^^^^^
19
20A multi-part message with event.v1.<EVENT_NAME>.<CLIENT_NAME>
21as the first part followed by textual data will be generated.
22<CLIENT_NAME> is the configured name and <EVENT_NAME> can be
23any of:
24
25 * connect
26 * disconnect
27 * closingtracefile
28
29It might contain more information, such as the filename of the
30tracefile that was closed. There is no guarantee for the order
31and amount of connect/disconnect messages.
32
33
34Client Data
35^^^^^^^^^^^
36
37A multi-part message with data.v1.<CLIENT_NAME> to allow to
38filter for data and a specific client if wanted.
39
40It is followed by the pcap_file_header structure as the second
41part and then the data as third part.