Class NGWin32NamedPipeServerSocket

java.lang.Object
java.net.ServerSocket
com.martiansoftware.nailgun.NGWin32NamedPipeServerSocket
All Implemented Interfaces:
Closeable, AutoCloseable

public class NGWin32NamedPipeServerSocket extends ServerSocket
  • Field Details

  • Constructor Details

    • NGWin32NamedPipeServerSocket

      public NGWin32NamedPipeServerSocket(String path) throws IOException
      Throws:
      IOException
    • NGWin32NamedPipeServerSocket

      public NGWin32NamedPipeServerSocket(String path, boolean requireStrictLength) throws IOException
      The doc for InputStream#read(byte[] b, int off, int len) states that "An attempt is made to read as many as len bytes, but a smaller number may be read." However, using requireStrictLength, NGWin32NamedPipeSocketInputStream can require that len matches up exactly the number of bytes to read.
      Throws:
      IOException
    • NGWin32NamedPipeServerSocket

      public NGWin32NamedPipeServerSocket(int maxInstances, String path) throws IOException
      Throws:
      IOException
    • NGWin32NamedPipeServerSocket

      public NGWin32NamedPipeServerSocket(int maxInstances, String path, boolean requireStrictLength) throws IOException
      The doc for InputStream#read(byte[] b, int off, int len) states that "An attempt is made to read as many as len bytes, but a smaller number may be read." However, using requireStrictLength, NGWin32NamedPipeSocketInputStream can require that len matches up exactly the number of bytes to read.
      Throws:
      IOException
  • Method Details