+
+ /**
+ * Gets the underlying MessageSendEventsProvider.
+ */
+ public MessageSendEventsProvider get_message_send_events_provider() {
+ MessageSendEventsProvider res = new MessageSendEventsProvider(null, bindings.LDKChannelMessageHandler_get_MessageSendEventsProvider(this.ptr));
+ this.ptrs_to.add(res);
+ return res;
+ }
+
+ /**
+ * Handle an incoming open_channel message from the given peer.
+ */
+ public void handle_open_channel(byte[] their_node_id, InitFeatures their_features, OpenChannel msg) {
+ bindings.ChannelMessageHandler_handle_open_channel(this.ptr, InternalUtils.check_arr_len(their_node_id, 33), their_features == null ? 0 : their_features.ptr & ~1, msg == null ? 0 : msg.ptr & ~1);
+ Reference.reachabilityFence(this);
+ Reference.reachabilityFence(their_node_id);
+ Reference.reachabilityFence(their_features);
+ Reference.reachabilityFence(msg);
+ this.ptrs_to.add(msg);
+ }
+
+ /**
+ * Handle an incoming accept_channel message from the given peer.
+ */
+ public void handle_accept_channel(byte[] their_node_id, InitFeatures their_features, AcceptChannel msg) {
+ bindings.ChannelMessageHandler_handle_accept_channel(this.ptr, InternalUtils.check_arr_len(their_node_id, 33), their_features == null ? 0 : their_features.ptr & ~1, msg == null ? 0 : msg.ptr & ~1);
+ Reference.reachabilityFence(this);
+ Reference.reachabilityFence(their_node_id);
+ Reference.reachabilityFence(their_features);
+ Reference.reachabilityFence(msg);
+ this.ptrs_to.add(msg);
+ }
+
+ /**
+ * Handle an incoming funding_created message from the given peer.
+ */