Package java.net

Examples of java.net.Socket.shutdownInput()


          {
            tlb.setBucketPort(0);
            sck = tlb.getSocket();
            tlb.isDeactivating = false;
            tlbitr.remove();
            sck.shutdownInput();
            sck.shutdownOutput();
            sck.close();
            MsgLog.log("removeIdleTLinkBuckets", "remove idle tcp connection to "+tlb.getBucketEndpoint().getHostAddress(),0,null,1);
          }
        }
View Full Code Here


    try
    {
      Socket sck = tb.getSocket();
      if (sck != null && !sck.isClosed())
      {
        sck.shutdownInput();
        sck.shutdownOutput();
        sck.close();
      }
    }
    catch (IOException e)
View Full Code Here

      os.write(cmd.getBytes("ASCII")); //command will always be ASCII //$NON-NLS-1$
      os.flush();
      byte[] resp = readResponse(is);
      dbgpResp = new DBGpResponse();
      dbgpResp.parseResponse(resp);
      s.shutdownInput();
      s.shutdownOutput();
      s.close();
      return dbgpResp;
    } catch (IOException ioe) {
      if (dbgpResp == null) {
View Full Code Here

            try {
                thread.join();
                assertNotNull(peerClient[0]);
                try {
                    assertFalse(peerServer.isInputShutdown());
                    peerServer.shutdownInput();
                    assertEquals(-1, peerClient[0].getInputStream().read());
                    assertTrue(peerServer.isInputShutdown());
                } finally {
                    peerClient[0].close();
                }
View Full Code Here

                    BufferedReader reader = new BufferedReader(new InputStreamReader(inputStream));
                    String req = reader.readLine().split(" ")[1];
                    int i = inputStream.available();
                    long l = inputStream.skip(i);
                    assertEquals(l, i);
                    socket.shutdownInput();
                    if (req.endsWith("MultiEnt")) {
                        OutputStreamWriter outputStreamWriter = new OutputStreamWriter(socket.getOutputStream());
                        outputStreamWriter.append("HTTP/1.0 200 OK\n" + "Connection: close\n" + "Content-Type: text/plain; charset=iso-8859-1\n" + "Content-Length: 2\n"
                                + "Content-Length: 1\n" + "\n0\n");
                        outputStreamWriter.flush();
View Full Code Here

          {
            tlb.setBucketPort(0);
            sck = tlb.getSocket();
            tlb.isDeactivating = false;
            tlbitr.remove();
            sck.shutdownInput();
            sck.shutdownOutput();
            sck.close();
            MsgLog.log("removeIdleTLinkBuckets", "remove idle tcp connection to "+tlb.getBucketEndpoint().getHostAddress(),0,null,1);
          }
        }
View Full Code Here

    try
    {
      Socket sck = tb.getSocket();
      if (sck != null && !sck.isClosed())
      {
        sck.shutdownInput();
        sck.shutdownOutput();
        sck.close();
      }
    }
    catch (IOException e)
View Full Code Here

          {
            tlb.setBucketPort(0);
            sck = tlb.getSocket();
            tlb.isDeactivating = false;
            tlbitr.remove();
            sck.shutdownInput();
            sck.shutdownOutput();
            sck.close();
            MsgLog.log("removeIdleTLinkBuckets", "remove idle tcp connection to "+tlb.getBucketEndpoint().getHostAddress(),0,null,1);
          }
        }
View Full Code Here

    try
    {
      Socket sck = tb.getSocket();
      if (sck != null && !sck.isClosed())
      {
        sck.shutdownInput();
        sck.shutdownOutput();
        sck.close();
      }
    }
    catch (IOException e)
View Full Code Here

    try {
      if (!socket.isClosed() && !socket.isOutputShutdown()) {
        socket.shutdownOutput();
      }
      if (!socket.isClosed() && !socket.isInputShutdown()) {
        socket.shutdownInput();
      }
    } catch (IOException e) {
    }
    try {
      socket.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.