Detect TPC/IP Client Connections on DA16200 Server to establish SSL connection

Hi,

I'm working with the DA16200 Dialog Semiconductor kit and I have configured DA16200 as a TLS server using the example project "tls_server_sample".

The setup currently handles one client using mbedtls_net_accept() and mbedtls_ssl_handshake() functions.

However, I'd like to understand how to detect more than one TPC/IP client connection . Specifically:

  • How can I detect when a second client tries to connect to the server?

  • What's the best way to queue or reject additional connections once one client is active?

  • If it is allowed only one TLS client at a time, what's the recommended method to enforce that?