Skip to content

TLSSocket::listen() and accept () are not supported. Unable to use TLSSocket as a server. #15106

Open
@blackwiz4rd

Description

@blackwiz4rd

Description of defect

Hi, I would like to understand the purpose of the TLSSocket and the difference between using TLSSocket and using mbedtls_* (as in this example https://github.com/ARMmbed/mbed-os-example-tls/blob/master/tls-client/HelloHttpsClient.cpp) functions.
In addition, I would like to point out that TLSSocket::listen() is not yet implemented, as well as TLSSocket::accept() (https://os.mbed.com/docs/mbed-os/v6.14/apis/tlssocket.html) as they both return "NSAPI_ERROR_UNSUPPORTED" (https://github.com/ARMmbed/TLSSocket/blob/master/TLSSocketWrapper.cpp). If possible I would like to understand the reason behind this method not being implemented.
Best regards.

How is this defect reproduced ?

Use TLSSocket::listen() function.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions