core-lightning/connectd/connectd_wire.csv
Rusty Russell f78184ce46 connectd: listen on ports for which we should spawn a proxy.
If the port is set, we spawn it (lightning_websocketd) on any
connection to that port.  That means websocketd is a per-peer daemon,
but it means every other daemon uses the connection normally (it's
just actually talking to websocketd instead of the client directly).

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
2021-10-22 11:56:30 +02:00

3.1 KiB

1#include <common/cryptomsg.h>
2#include <common/features.h>
3#include <common/per_peer_state.h>
4#include <common/wireaddr.h>
5#include <lightningd/gossip_msg.h>
6msgtype,connectd_init,2000
7msgdata,connectd_init,chainparams,chainparams,
8msgdata,connectd_init,our_features,feature_set,
9msgdata,connectd_init,id,node_id,
10msgdata,connectd_init,num_wireaddrs,u16,
11msgdata,connectd_init,wireaddrs,wireaddr_internal,num_wireaddrs
12msgdata,connectd_init,listen_announce,enum addr_listen_announce,num_wireaddrs
13msgdata,connectd_init,tor_proxyaddr,?wireaddr,
14msgdata,connectd_init,use_tor_proxy_always,bool,
15msgdata,connectd_init,dev_allow_localhost,bool,
16msgdata,connectd_init,use_dns,bool,
17msgdata,connectd_init,tor_password,wirestring,
18msgdata,connectd_init,use_v3_autotor,bool,
19msgdata,connectd_init,timeout_secs,u32,
20msgdata,connectd_init,websocket_helper,wirestring,
21msgdata,connectd_init,websocket_port,u16,
22# Connectd->master, here are the addresses I bound, can announce.
23msgtype,connectd_init_reply,2100
24msgdata,connectd_init_reply,num_bindings,u16,
25msgdata,connectd_init_reply,bindings,wireaddr_internal,num_bindings
26msgdata,connectd_init_reply,num_announcable,u16,
27msgdata,connectd_init_reply,announcable,wireaddr,num_announcable
28# Activate the connect daemon, so others can connect.
29msgtype,connectd_activate,2025
30# Do we listen?
31msgdata,connectd_activate,listen,bool,
32# Connectd->master, I am ready.
33msgtype,connectd_activate_reply,2125
34# connectd->master: disconnect this peer please (due to reconnect).
35msgtype,connectd_reconnected,2112
36msgdata,connectd_reconnected,id,node_id,
37# Master -> connectd: connect to a peer.
38msgtype,connectd_connect_to_peer,2001
39msgdata,connectd_connect_to_peer,id,node_id,
40msgdata,connectd_connect_to_peer,seconds_waited,u32,
41msgdata,connectd_connect_to_peer,addrhint,?wireaddr_internal,
42# Connectd->master: connect failed.
43msgtype,connectd_connect_failed,2020
44msgdata,connectd_connect_failed,id,node_id,
45msgdata,connectd_connect_failed,failcode,errcode_t,
46msgdata,connectd_connect_failed,failreason,wirestring,
47msgdata,connectd_connect_failed,seconds_to_delay,u32,
48msgdata,connectd_connect_failed,addrhint,?wireaddr_internal,
49# Connectd -> master: we got a peer. Three fds: peer, gossip and gossip_store
50msgtype,connectd_peer_connected,2002
51msgdata,connectd_peer_connected,id,node_id,
52msgdata,connectd_peer_connected,addr,wireaddr_internal,
53msgdata,connectd_peer_connected,incoming,bool,
54msgdata,connectd_peer_connected,pps,per_peer_state,
55msgdata,connectd_peer_connected,flen,u16,
56msgdata,connectd_peer_connected,features,u8,flen
57# master -> connectd: peer has disconnected.
58msgtype,connectd_peer_disconnected,2015
59msgdata,connectd_peer_disconnected,id,node_id,
60# master -> connectd: give message to peer and disconnect. Three fds: peer, gossip and gossip_store
61msgtype,connectd_peer_final_msg,2003
62msgdata,connectd_peer_final_msg,id,node_id,
63msgdata,connectd_peer_final_msg,pps,per_peer_state,
64msgdata,connectd_peer_final_msg,len,u16,
65msgdata,connectd_peer_final_msg,msg,u8,len
66# master -> connectd: do you have a memleak?
67msgtype,connectd_dev_memleak,2033
68msgtype,connectd_dev_memleak_reply,2133
69msgdata,connectd_dev_memleak_reply,leak,bool,