MCPcopy Create free account
hub / github.com/M66B/FairEmail / close

Method close

app/src/main/java/com/sun/mail/pop3/Protocol.java:810–824  ·  view source on GitHub ↗

Close the connection without sending any commands.

()

Source from the content-addressed store, hash-verified

808 * Close the connection without sending any commands.
809 */
810 void close() {
811 try {
812 if (socket != null)
813 socket.close();
814 if (traceInput != null && traceOutput != null)
815 eu.faircode.email.TrafficStatsHelper.report(host, prefix,
816 traceOutput.getSent(), traceInput.getReceived());
817 } catch (IOException ex) {
818 // ignore it
819 } finally {
820 socket = null;
821 input = null;
822 output = null;
823 }
824 }
825
826 /**
827 * Return the total number of messages and mailbox size,

Callers 9

quitMethod · 0.95
cleanupAndThrowMethod · 0.45
setCapabilitiesMethod · 0.45
authenticateMethod · 0.45
retrMethod · 0.45
uidlMethod · 0.45
stlsMethod · 0.45
readResponseMethod · 0.45
readMultilineResponseMethod · 0.45

Calls 3

reportMethod · 0.65
getSentMethod · 0.45
getReceivedMethod · 0.45

Tested by

no test coverage detected