Class Socket

java.lang.Object
org.lwjgl.system.linux.Socket

public class Socket extends Object
Native bindings to <sys/socket.h>.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final int
    The following constants should be used for the second parameter of shutdown.
    static final int
    The following constants should be used for the second parameter of shutdown.
    static final int
    The following constants should be used for the second parameter of shutdown.
  • Method Summary

    Modifier and Type
    Method
    Description
    static int
    socket(int __domain, int __type, int __protocol)
    Create a new socket of type __type in domain __domain, using protocol __protocol.

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • SHUT_RD

      public static final int SHUT_RD
      The following constants should be used for the second parameter of shutdown.
      Enum values:
      See Also:
    • SHUT_WR

      public static final int SHUT_WR
      The following constants should be used for the second parameter of shutdown.
      Enum values:
      See Also:
    • SHUT_RDWR

      public static final int SHUT_RDWR
      The following constants should be used for the second parameter of shutdown.
      Enum values:
      See Also:
  • Method Details

    • socket

      public static int socket(int __domain, int __type, int __protocol)
      Create a new socket of type __type in domain __domain, using protocol __protocol.

      If __protocol is zero, one is chosen automatically.

      Returns:
      a file descriptor for the new socket, or -1 for errors