Connect to SPOP3 Server using Java (Sockets)

'SslSocketClient.java - SSL Client Socket Example' tutorial was cited in an e-learn.cn article in 2019.

The SslSocketClient.java - SSL Client Socket Example tutorial was cited in an e-learn.cn article in 2019.

Subject: How to connect/telnet to SPOP3 server using java (Sockets)?
Date: Dec 24, 2019
Author: 家住魔仙堡
Source: https://www.e-learn.cn/topic/2866504

In case of POP3 it is possible to connect via telnet using sockets over
port 110, But how to do it , if SPOP3 is implemented. With normal telnet
it can be done quite easily with
   Socket pop3Socket = new Socket(host.com, 110);

FYI: For connecting to SPOP3 we use in linux/unix
   openssl s_client -connect servername.com:995

回答1:

You'll need to use the SSLSocket class. An example can be found at:
https://www.herongyang.com/JDK/SSL-Socket-Client-Example-SslSocketClient.html.

Basically, you'll do something like:
   SSLSocketFactory f = (SSLSocketFactory) SSLSocketFactory.getDefault();
   SSLSocket c =        (SSLSocket) f.createSocket("localhost", 8888);

...

Table of Contents

 About This Book

 Reference Citations in 2023

 Reference Citations in 2022

 Reference Citations in 2021

 Reference Citations in 2020

Reference Citations in 2019

 From JDBC to Druid - Using DataSource in Druid

 email – Exchange Server Configuration

 Chinese Character Encodings (gb2312/Big5/GB2312)

 Configurar DataSource JDBC

 Java Job Interview - JVM 1

 Calculating PI to N places

 Signing boot images for Android Verified Boot

 Apache Activemq as a broker to communicate with esp32 via MQTT

 BOM olmadan UTF-8 ve UTF-8 arasındaki fark nedir?

 Java – Not Able to jinfo on Mac OS

 Converting String using Float.parseFloat

 How to call Http.GetStringAsync with parameter

 Adding SVG Images in Rmarkdown

 ClassNotFoundException com.mysql.jdbc.Driver

 Imaging Audio CDs using the command line

 java_megoldasok

 PKCS5 and PKCS7 Paddings

 KSA Key Scheduling

 Connect ODBC to MS Access

 Help with plugins installation

 java vm: how to log class unloading

 Detecting Encoding from POST Request in PHP

 Chinese Calendar for Linux Desktop

Connect to SPOP3 Server using Java (Sockets)

 XML Schema - Multiple Root Elements

 Reference Citations in 2018

 Reference Citations in 2017

 Reference Citations in 2016

 Reference Citations in 2015

 Reference Citations in 2014

 Reference Citations in 2013

 Reference Citations in 2012

 Reference Citations in 2011

 Reference Citations in 2010

 Reference Citations in 2009

 Reference Citations in 2008

 Reference Citations in 2007

 Reference Citations in 2006

 Reference Citations in 2005

 Reference Citations in 2004

 Reference Citations in 2003