Topic: DTLS client set peer in CSharp

Hello,

I am trying to build a pair of server and client using DTLS with CSharp wrapper.
However, when enabling DTLS for client, I cannot find the method

wolfssl.dtls_set_peer

.
(I refer to the code in wolfssl-example/dtls/client-dtls.c since there are no client code in wrapper.)
What method should I use to set the target address for a DTLS client?

Thank you!
Sunny

Share

Re: DTLS client set peer in CSharp

Hi s123unny,

The DTLS server handles the peer address filter via the IO callbacks and the `wolfssl.set_dtls_fd`. See wolfSSL.cs `wolfSSL_dtlsCbIOSend` and `wolfSSL_dtlsCbIORecv`. Is there a use-case this is not covering for you?


I will still make a feature request note for `wolfssl.dtls_set_peer` -> `wolfSSL_dtls_set_peer`.

Thanks,
David Garske, wolfSSL

Share