Skip to content

Commit

Permalink
Begin to add CapabilitiesSettings.
Browse files Browse the repository at this point in the history
  • Loading branch information
sbernard31 committed Dec 2, 2022
1 parent c493a62 commit fc2a1e7
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
package org.eclipse.californium.core.network.stack;

import org.eclipse.californium.elements.EndpointContext;

public class CapabilitiesSettingsLayer extends AbstractConnectionOrientedLayer {

@Override
public void connected(EndpointContext context) {

// TODO send CSM Message ?
// But we need an exchange :S

// sendEmptyMessage(null, null); ?
// sendRequest(null, null); ?

super.connected(context);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ public CoapTcpStack(String tag, Configuration config, EndpointContextMatcher mat
super(outbox);

ConnectionOrientedLayer layers[] = new ConnectionOrientedLayer[] { new TcpExchangeCleanupLayer(), new TcpObserveLayer(config),
new TcpBlockwiseLayer(tag, config, matchingStrategy), new TcpAdaptionLayer() };
new TcpBlockwiseLayer(tag, config, matchingStrategy), new TcpAdaptionLayer(), new CapabilitiesSettingsLayer()};

setLayers(layers);

Expand Down

0 comments on commit fc2a1e7

Please sign in to comment.