@@ -55,14 +55,17 @@ The currently available tracepoints are listed here.
5555
5656### Context ` net `
5757
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+
5861#### Tracepoint ` net:inbound_message `
5962
6063Is called when a message is received from a peer over the P2P network. Passes
6164information about our peer, the connection and the message as arguments.
6265
6366Arguments passed:
64671 . 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 ] )
66693 . Connection Type (inbound, feeler, outbound-full-relay, ...) as ` pointer to C-style String ` (max. length 20 characters)
67704 . Message Type (inv, ping, getdata, addrv2, ...) as ` pointer to C-style String ` (max. length 20 characters)
68715 . Message Size in bytes as ` uint64 `
@@ -81,7 +84,7 @@ information about our peer, the connection and the message as arguments.
8184
8285Arguments passed:
83861 . 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 ] )
85883 . Connection Type (inbound, feeler, outbound-full-relay, ...) as ` pointer to C-style String ` (max. length 20 characters)
86894 . Message Type (inv, ping, getdata, addrv2, ...) as ` pointer to C-style String ` (max. length 20 characters)
87905 . Message Size in bytes as ` uint64 `
@@ -100,7 +103,7 @@ the peer and the number of inbound connections including the newly opened connec
100103
101104Arguments passed:
1021051 . 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 ] )
1041073 . Connection Type (inbound, feeler, outbound-full-relay, ...) as ` pointer to C-style String ` (max. length 20 characters)
1051084 . Network the peer connects from as ` uint32 ` (1 = IPv4, 2 = IPv6, 3 = Onion, 4 = I2P, 5 = CJDNS). See ` Network ` enum in ` netaddress.h ` .
1061095 . 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
112115
113116Arguments passed:
1141171 . 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 ] )
1161193 . Connection Type (inbound, feeler, outbound-full-relay, ...) as ` pointer to C-style String ` (max. length 20 characters)
1171204 . Network of the peer as ` uint32 ` (1 = IPv4, 2 = IPv6, 3 = Onion, 4 = I2P, 5 = CJDNS). See ` Network ` enum in ` netaddress.h ` .
1181215 . 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
123126
124127Arguments passed:
1251281 . 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 ] )
1271303 . Connection Type (inbound, feeler, outbound-full-relay, ...) as ` pointer to C-style String ` (max. length 20 characters)
1281314 . Network the peer connects from as ` uint32 ` (1 = IPv4, 2 = IPv6, 3 = Onion, 4 = I2P, 5 = CJDNS). See ` Network ` enum in ` netaddress.h ` .
1291325 . Connection established UNIX epoch timestamp in seconds as ` uint64 ` .
@@ -144,7 +147,7 @@ and the time at connection establishment.
144147
145148Arguments passed:
1461491 . 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 ] )
1481513 . Connection Type (inbound, feeler, outbound-full-relay, ...) as ` pointer to C-style String ` (max. length 20 characters)
1491524 . Network the peer connects from as ` uint32 ` (1 = IPv4, 2 = IPv6, 3 = Onion, 4 = I2P, 5 = CJDNS). See ` Network ` enum in ` netaddress.h ` .
1501535 . Connection established UNIX epoch timestamp in seconds as ` uint64 ` .
0 commit comments