/ Published in: Java
Create a Socket that uses SSL :D
Expand |
Embed | Plain Text
import javax.net.ssl.*; import javax.net.*; import java.net.*; import java.io.*; class ... static BufferedReader in; static BufferedWriter out; static SocketFactory sockfact; static Socket sock; public static ... try { int port = 995; SocketFactory sockfactory = SSLSocketFactory.getDefault(); //Send Data out.write("data "); out.flush(); //recv Data
You need to login to post a comment.
