1. Olle Lundberg
  2. java-ssl-test

Commits

Olle Lundberg  committed 4fe9b38

Print ok line after the actual communication is made.

  • Participants
  • Parent commits 1b59bca
  • Branches default

Comments (0)

Files changed (1)

File SSLTest.java

View file
 
 		       Socket s = SSLSocketFactory.getDefault()
 			       .createSocket(Host, Port);
-		       System.out.println(Host + ":" + Port + " looks okay to java!");
 		       OutputStream out = s.getOutputStream();
 		       out.write("I love you!".getBytes("UTF8"));
+		       System.out.println(Host + ":" + Port + " looks okay to java!");
 		       out.close();
 		       s.close();
 	}