summaryrefslogtreecommitdiff
path: root/src/leap/common/events/examples/README.txt
blob: 0bb0df6ba62f40269f4c611063709ceb10075891 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
How to debug
-----------------------------------------
monitor the events socket:
  sudo ngrep -W byline -d any port 9000

launch the server:
  python server.py

launch the client:
  python client.py

if zmq is available and enabled, you should see encrypted messages passing by
the socket.

You should see something like the following:

####
T 127.0.0.1:9000 -> 127.0.0.1:33122 [AP]
..........
##
T 127.0.0.1:33122 -> 127.0.0.1:9000 [AP]
...........
##
T 127.0.0.1:9000 -> 127.0.0.1:33122 [AP]
..CURVE...............................................
#
T 127.0.0.1:33122 -> 127.0.0.1:9000 [AP]
.CURVE...............................................
#
T 127.0.0.1:33122 -> 127.0.0.1:9000 [AP]
...HELLO.............................................................................:....^...".....'.S...n......Y...................O.7.+.D.q".*..R...j.....8..qu..~......Ck.G\....:...m....Tg.s..M..x<..
##
T 127.0.0.1:9000 -> 127.0.0.1:33122 [AP]
...WELCOME..%.'.,Td... I..}...........`..Nm......./_.Je...4.....-.....f<v.|.".jJ...^.D...$lJ..U......g..../w.......\..W.....!........i.v....0...........3..a.5}.@F..v./..$
#
T 127.0.0.1:33122 -> 127.0.0.1:9000 [AP]
..........INITIATE......!.*.=0.-......D..]{...A\.tz...!2.....A./
6.......Y.h.N....cb.U.|..f..)....W..3..X.2U.3PGl.........m..95.(......NJ....5.'..W.GQ..B/.....\%.,Q..r.'L5.......{.W<=._.$.(6j.G...
...37.H..Th...'.........0 ........,..q....U..G..M.`!_..w....f."..........
.d.K.Y.>f.n.kV.
#
T 127.0.0.1:9000 -> 127.0.0.1:33122 [AP]
.2.READY............A...e.)......*.8y....k.<.N1Z.4..
#
T 127.0.0.1:33122 -> 127.0.0.1:9000 [AP]
.+.MESSAGE........o...*M..,....
.r..w..[.GwcU
###