MCPcopy Create free account
hub / github.com/SmingHub/Sming / printTo

Method printTo

Sming/Components/ssl/src/Connection.cpp:17–30  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

15namespace Ssl
16{
17size_t Connection::printTo(Print& p) const
18{
19 size_t n = 0;
20 auto cert = getCertificate();
21 if(cert != nullptr) {
22 n += cert->printTo(p);
23 }
24 n += p.println(_F("SSL Connection Information:"));
25 n += p.print(_F(" Cipher: "));
26 n += p.println(toString(getCipherSuite()));
27 n += p.print(_F(" Session ID: "));
28 n += p.println(toString(getSessionId()));
29 return n;
30}
31
32int Connection::writeTcpData(uint8_t* data, size_t length)
33{

Callers

nothing calls this directly

Calls 3

printlnMethod · 0.80
toStringFunction · 0.70
printMethod · 0.45

Tested by

no test coverage detected