@@ -55,14 +55,17 @@ The currently available tracepoints are listed here.
55
55
56
56
### Context ` net `
57
57
58
+ [ ^ address-length ] : An Onion v3 address with a ` : ` and a five digit port has 68
59
+ chars. However, addresses of peers added with host names might be longer.
60
+
58
61
#### Tracepoint ` net:inbound_message `
59
62
60
63
Is called when a message is received from a peer over the P2P network. Passes
61
64
information about our peer, the connection and the message as arguments.
62
65
63
66
Arguments passed:
64
67
1 . Peer ID as ` int64 `
65
- 2 . Peer Address and Port (IPv4, IPv6, Tor v3, I2P, ...) as ` pointer to C-style String ` (max. length 68 characters)
68
+ 2 . Peer Address and Port (IPv4, IPv6, Tor v3, I2P, ...) as ` pointer to C-style String ` (normally up to 68 characters[ ^ address-length ] )
66
69
3 . Connection Type (inbound, feeler, outbound-full-relay, ...) as ` pointer to C-style String ` (max. length 20 characters)
67
70
4 . Message Type (inv, ping, getdata, addrv2, ...) as ` pointer to C-style String ` (max. length 20 characters)
68
71
5 . Message Size in bytes as ` uint64 `
@@ -81,7 +84,7 @@ information about our peer, the connection and the message as arguments.
81
84
82
85
Arguments passed:
83
86
1 . Peer ID as ` int64 `
84
- 2 . Peer Address and Port (IPv4, IPv6, Tor v3, I2P, ...) as ` pointer to C-style String ` (max. length 68 characters)
87
+ 2 . Peer Address and Port (IPv4, IPv6, Tor v3, I2P, ...) as ` pointer to C-style String ` (normally up to 68 characters[ ^ address-length ] )
85
88
3 . Connection Type (inbound, feeler, outbound-full-relay, ...) as ` pointer to C-style String ` (max. length 20 characters)
86
89
4 . Message Type (inv, ping, getdata, addrv2, ...) as ` pointer to C-style String ` (max. length 20 characters)
87
90
5 . Message Size in bytes as ` uint64 `
@@ -100,7 +103,7 @@ the peer and the number of inbound connections including the newly opened connec
100
103
101
104
Arguments passed:
102
105
1 . Peer ID as ` int64 `
103
- 2 . Peer address and port (IPv4, IPv6, Tor v3, I2P, ...) as ` pointer to C-style String ` (max. length 68 characters)
106
+ 2 . Peer address and port (IPv4, IPv6, Tor v3, I2P, ...) as ` pointer to C-style String ` (normally up to 68 characters[ ^ address-length ] )
104
107
3 . Connection Type (inbound, feeler, outbound-full-relay, ...) as ` pointer to C-style String ` (max. length 20 characters)
105
108
4 . Network the peer connects from as ` uint32 ` (1 = IPv4, 2 = IPv6, 3 = Onion, 4 = I2P, 5 = CJDNS). See ` Network ` enum in ` netaddress.h ` .
106
109
5 . Number of existing inbound connections as ` uint64 ` including the newly opened inbound connection.
@@ -112,7 +115,7 @@ the peer and the number of outbound connections including the newly opened conne
112
115
113
116
Arguments passed:
114
117
1 . Peer ID as ` int64 `
115
- 2 . Peer address and port (IPv4, IPv6, Tor v3, I2P, ...) as ` pointer to C-style String ` (max. length 68 characters)
118
+ 2 . Peer address and port (IPv4, IPv6, Tor v3, I2P, ...) as ` pointer to C-style String ` (normally up to 68 characters[ ^ address-length ] )
116
119
3 . Connection Type (inbound, feeler, outbound-full-relay, ...) as ` pointer to C-style String ` (max. length 20 characters)
117
120
4 . Network of the peer as ` uint32 ` (1 = IPv4, 2 = IPv6, 3 = Onion, 4 = I2P, 5 = CJDNS). See ` Network ` enum in ` netaddress.h ` .
118
121
5 . Number of existing outbound connections as ` uint64 ` including the newly opened outbound connection.
@@ -123,7 +126,7 @@ Is called when a inbound connection is evicted by us. Passes information about t
123
126
124
127
Arguments passed:
125
128
1 . Peer ID as ` int64 `
126
- 2 . Peer address and port (IPv4, IPv6, Tor v3, I2P, ...) as ` pointer to C-style String ` (max. length 68 characters)
129
+ 2 . Peer address and port (IPv4, IPv6, Tor v3, I2P, ...) as ` pointer to C-style String ` (normally up to 68 characters[ ^ address-length ] )
127
130
3 . Connection Type (inbound, feeler, outbound-full-relay, ...) as ` pointer to C-style String ` (max. length 20 characters)
128
131
4 . Network the peer connects from as ` uint32 ` (1 = IPv4, 2 = IPv6, 3 = Onion, 4 = I2P, 5 = CJDNS). See ` Network ` enum in ` netaddress.h ` .
129
132
5 . Connection established UNIX epoch timestamp in seconds as ` uint64 ` .
@@ -144,7 +147,7 @@ and the time at connection establishment.
144
147
145
148
Arguments passed:
146
149
1 . Peer ID as ` int64 `
147
- 2 . Peer address and port (IPv4, IPv6, Tor v3, I2P, ...) as ` pointer to C-style String ` (max. length 68 characters)
150
+ 2 . Peer address and port (IPv4, IPv6, Tor v3, I2P, ...) as ` pointer to C-style String ` (normally up to 68 characters[ ^ address-length ] )
148
151
3 . Connection Type (inbound, feeler, outbound-full-relay, ...) as ` pointer to C-style String ` (max. length 20 characters)
149
152
4 . Network the peer connects from as ` uint32 ` (1 = IPv4, 2 = IPv6, 3 = Onion, 4 = I2P, 5 = CJDNS). See ` Network ` enum in ` netaddress.h ` .
150
153
5 . Connection established UNIX epoch timestamp in seconds as ` uint64 ` .
0 commit comments