Print reply to client secure socket from it's SSLServerSocket connection

A

Abraham Khalil

Hello,
Have a secure socket connected to SSLServerSocket but the server
socket has a problem replying back to the secure socket. It's not
showing any text??

Anyone know what could be wrong with it?

Thanks

SSLSocket sslSocket = (SSLSocket) sslServerSocket.accept();

// This gets the output stream of the client socket?
PrintWriter out = new PrintWriter(sslSocket.getOutputStream(), true);

out.println("Here's a response....");
 
A

Abraham Khalil

It's ok - sockets are bi-directional - i.e can get input or output
stream and read/write...
 
A

Abraham Khalil

It's ok - sockets are bi-directional - both input and output stream
provided - i.e read/write...
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,581
Members
45,056
Latest member
GlycogenSupporthealth

Latest Threads

Top