Module jcifs

Class FsctlPipeWaitRequest

java.lang.Object
org.codelibs.jcifs.smb.internal.fscc.FsctlPipeWaitRequest
All Implemented Interfaces:
Encodable

public class FsctlPipeWaitRequest extends Object implements Encodable
File System Control Code (FSCC) request for pipe wait operations. Implements the FSCTL_PIPE_WAIT control code used to wait for a named pipe to become available when attempting to connect to a busy pipe.
Author:
mbechler
  • Constructor Details

    • FsctlPipeWaitRequest

      public FsctlPipeWaitRequest(String name)
      Constructs a pipe wait request without timeout.
      Parameters:
      name - the pipe name to wait for
    • FsctlPipeWaitRequest

      public FsctlPipeWaitRequest(String name, long timeout)
      Constructs a pipe wait request with timeout.
      Parameters:
      name - the pipe name to wait for
      timeout - the timeout value in milliseconds
  • Method Details

    • encode

      public int encode(byte[] dst, int dstIndex)
      Encodes this object into the specified byte array.
      Specified by:
      encode in interface Encodable
      Parameters:
      dst - the destination byte array to encode into
      dstIndex - the starting index in the destination array
      Returns:
      encoded length
      See Also:
    • size

      public int size()
      Returns the size in bytes that this object will occupy when encoded.
      Specified by:
      size in interface Encodable
      Returns:
      the encoded size
      See Also: