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

Discussion in 'Java' started by Abraham Khalil, Jan 26, 2004.

  1. 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....");
     
    Abraham Khalil, Jan 26, 2004
    #1
    1. Advertising

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

    (Abraham Khalil) wrote in message news:<>...
    > 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....");
     
    Abraham Khalil, Jan 26, 2004
    #2
    1. Advertising

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

    (Abraham Khalil) wrote in message news:<>...
    > 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....");
     
    Abraham Khalil, Jan 26, 2004
    #3
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Replies:
    0
    Views:
    2,463
  2. Replies:
    2
    Views:
    340
    dcrespo
    Apr 7, 2005
  3. jestan
    Replies:
    3
    Views:
    380
  4. davidj411
    Replies:
    1
    Views:
    1,052
    Mike Driscoll
    May 27, 2008
  5. Replies:
    2
    Views:
    562
Loading...

Share This Page