Package java.net

Examples of java.net.Socket.shutdownInput()


                try {
                    sock.shutdownOutput();
                } catch (IOException ignore) {
                }
                try {
                    sock.shutdownInput();
                } catch (IOException ignore) {
                }
            } catch (UnsupportedOperationException ignore) {
                // if one isn't supported, the other one isn't either
            }
View Full Code Here


/*      */       }
/*      */       try
/*      */       {
/*  881 */         objectOut.flush();
/*  882 */         socket.shutdownOutput();
/*  883 */         socket.shutdownInput();
/*  884 */         objectOut.close();
/*  885 */         out.close();
/*  886 */         objectIn.close();
/*  887 */         in.close();
/*  888 */         socket.close();
View Full Code Here

/*      */
/*      */         try
/*      */         {
/*  711 */           objectOut.flush();
/*  712 */           socket.shutdownOutput();
/*  713 */           socket.shutdownInput();
/*  714 */           objectOut.close();
/*  715 */           objectIn.close();
/*  716 */           out.close();
/*  717 */           in.close();
/*  718 */           socket.close();
View Full Code Here

            }
        }

        println("shutting down socket...");
        s.shutdownOutput();
        s.shutdownInput();
        s.close();

        println("done test1...");
    }
View Full Code Here

            }
        }

        println("shutting down socket...");
        s.shutdownOutput();
        s.shutdownInput();
        s.close();

        println("done test1...");
    }
View Full Code Here

        client.close();
        server.close();

        // Regression test for HARMONY-2944
        Socket s = new Socket("0.0.0.0", 0, false);
        s.shutdownInput();
        try {
            s.shutdownInput();
            fail("should throw SocketException");
        } catch (SocketException se) {
            // Expected
View Full Code Here

        // Regression test for HARMONY-2944
        Socket s = new Socket("0.0.0.0", 0, false);
        s.shutdownInput();
        try {
            s.shutdownInput();
            fail("should throw SocketException");
        } catch (SocketException se) {
            // Expected
        }
        s.close();
View Full Code Here

            }
        }

        println("shutting down socket...");
        s.shutdownOutput();
        s.shutdownInput();
        s.close();

        println("done test1...");
    }
View Full Code Here

        // Regression test for HARMONY-2944
        // Port 0 is not allowed to be used in connect() on some platforms,
        // Since server has been closed here, so the port is free now
        Socket s = new Socket("0.0.0.0", port, false);
        s.shutdownInput();
        try {
            s.shutdownInput();
            fail("should throw SocketException");
        } catch (SocketException se) {
            // Expected
View Full Code Here

        // Port 0 is not allowed to be used in connect() on some platforms,
        // Since server has been closed here, so the port is free now
        Socket s = new Socket("0.0.0.0", port, false);
        s.shutdownInput();
        try {
            s.shutdownInput();
            fail("should throw SocketException");
        } catch (SocketException se) {
            // Expected
        }
        s.close();
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.