Package libcore.io

Class StructUcred

java.lang.Object
libcore.io.StructUcred

public final class StructUcred
extends Object
Corresponds to C's struct ucred.
  • Field Summary

    Fields
    Modifier and Type Field Description
    int gid
    The peer process' gid.
    int pid
    The peer's process id.
    int uid
    The peer process' uid.
  • Method Summary

    Modifier and Type Method Description
    String toString()
    Returns a string containing a concise, human-readable description of this object.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Field Details

    • pid

      public final int pid
      The peer's process id.
    • uid

      public final int uid
      The peer process' uid.
    • gid

      public final int gid
      The peer process' gid.
  • Method Details

    • toString

      public String toString()
      Description copied from class: Object
      Returns a string containing a concise, human-readable description of this object. Subclasses are encouraged to override this method and provide an implementation that takes into account the object's type and data. The default implementation is equivalent to the following expression:
         getClass().getName() + '@' + Integer.toHexString(hashCode())

      See Writing a useful toString method if you intend implementing your own toString method.

      Overrides:
      toString in class Object
      Returns:
      a printable representation of this object.