Package org.lwjgl.system.linux
Class Socket
java.lang.Object
org.lwjgl.system.linux.Socket
Native bindings to <sys/socket.h>.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intThe following constants should be used for the second parameter ofshutdown.static final intThe following constants should be used for the second parameter ofshutdown.static final intThe following constants should be used for the second parameter ofshutdown. -
Method Summary
Modifier and TypeMethodDescriptionstatic intnsocket(long _errno, int __domain, int __type, int __protocol) Unsafe version of:socket(java.nio.IntBuffer, int, int, int)static intCreate a new socket of type__typein 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
-
nsocket
public static int nsocket(long _errno, int __domain, int __type, int __protocol) Unsafe version of:socket(java.nio.IntBuffer, int, int, int) -
socket
Create a new socket of type__typein domain__domain, using protocol__protocol.If
__protocolis zero, one is chosen automatically.- Parameters:
_errno- optionally returns theerrnovalue after this function is called- Returns:
- a file descriptor for the new socket, or -1 for errors
-