Package org.lwjgl.system.linux
Class Socket
java.lang.Object
org.lwjgl.system.linux.Socket
Native bindings to <sys/socket.h>.
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
The following constants should be used for the second parameter ofshutdown
.static final int
The following constants should be used for the second parameter ofshutdown
.static final int
The following constants should be used for the second parameter ofshutdown
. -
Method Summary
Modifier and TypeMethodDescriptionstatic int
socket
(int __domain, int __type, int __protocol) Create a new socket of type__type
in domain__domain
, using protocol__protocol
.
-
Field Details
-
SHUT_RD
public static final int SHUT_RDThe following constants should be used for the second parameter ofshutdown
.Enum values:
- See Also:
-
SHUT_WR
public static final int SHUT_WRThe following constants should be used for the second parameter ofshutdown
.Enum values:
- See Also:
-
SHUT_RDWR
public static final int SHUT_RDWRThe following constants should be used for the second parameter ofshutdown
.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
-