<h3>Contribution description</h3>
<p><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="756104486" data-permission-text="Title is private" data-url="https://github.com/RIOT-OS/RIOT/issues/15549" data-hovercard-type="pull_request" data-hovercard-url="/RIOT-OS/RIOT/pull/15549/hovercard" href="https://github.com/RIOT-OS/RIOT/pull/15549">#15549</a> introduced DTLS support for CoAP, but did not make it possible to select the transport on request. Since switching between CoAP and CoAPS (CoAP-over-DTLS) as client is a valid use case (one might want to e.g. talk to one server over CoAP and to another over CoAPS), this change makes that possible.</p>
<p>This is only a draft for now.</p>
<p>TODOs:</p>
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> Testing.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> Also make listeners configurable at run-time.</li>
</ul>

<h3>Testing procedure</h3>
<p>Untested for now.</p>

<h3>Issues/PRs references</h3>
<p>Follow-up on <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="756104486" data-permission-text="Title is private" data-url="https://github.com/RIOT-OS/RIOT/issues/15549" data-hovercard-type="pull_request" data-hovercard-url="/RIOT-OS/RIOT/pull/15549/hovercard" href="https://github.com/RIOT-OS/RIOT/pull/15549">#15549</a></p>


<hr>

<h4>You can view, comment on, or merge this pull request online at:</h4>
<p>  <a href='https://github.com/RIOT-OS/RIOT/pull/16688'>https://github.com/RIOT-OS/RIOT/pull/16688</a></p>

<h4>Commit Summary</h4>
<ul>
  <li>gcoap: multi-transport support for clients</li>
</ul>

<h4>File Changes</h4>
<ul>
  <li>
    <strong>M</strong>
    <a href="https://github.com/RIOT-OS/RIOT/pull/16688/files#diff-1f350a41b0b03d4495226e0f034e0dd570596b319190ccfebf68c32bec814bb2">sys/include/net/gcoap.h</a>
    (95)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/RIOT-OS/RIOT/pull/16688/files#diff-ded782b26b569cf2266e68098c3500e2cbd358ad2a3d161617ea6dd6acee76c7">sys/net/application_layer/gcoap/gcoap.c</a>
    (121)
  </li>
</ul>

<h4>Patch Links:</h4>
<ul>
  <li><a href='https://github.com/RIOT-OS/RIOT/pull/16688.patch'>https://github.com/RIOT-OS/RIOT/pull/16688.patch</a></li>
  <li><a href='https://github.com/RIOT-OS/RIOT/pull/16688.diff'>https://github.com/RIOT-OS/RIOT/pull/16688.diff</a></li>
</ul>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />You are receiving this because you are subscribed to this thread.<br />Reply to this email directly, <a href="https://github.com/RIOT-OS/RIOT/pull/16688">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/ABE7WYAK5KTEVLMI2CELYNTTZ4SB3ANCNFSM5BDC3LIQ">unsubscribe</a>.<img src="https://github.com/notifications/beacon/ABE7WYFLY4KFV5KZXKV5KKTTZ4SB3A5CNFSM5BDC3LI2YY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4OHBJKSQ.gif" height="1" width="1" alt="" /></p>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/RIOT-OS/RIOT/pull/16688",
"url": "https://github.com/RIOT-OS/RIOT/pull/16688",
"name": "View Pull Request"
},
"description": "View this Pull Request on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>